From 6296ecf82e7940ca798a928d6176e82bbe85c222 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 27 Apr 2025 15:33:34 +0900 Subject: add reparojson --- default.nix | 3 +-- pkgs/reparojson/default.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 pkgs/reparojson/default.nix diff --git a/default.nix b/default.nix index 3846c24..f183158 100644 --- a/default.nix +++ b/default.nix @@ -15,6 +15,5 @@ overlays = import ./overlays; # nixpkgs overlays example-package = pkgs.callPackage ./pkgs/example-package { }; - # some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { }; - # ... + reparojson = pkgs.callPackage ./pkgs/reparojson { }; } diff --git a/pkgs/reparojson/default.nix b/pkgs/reparojson/default.nix new file mode 100644 index 0000000..ae8ab6e --- /dev/null +++ b/pkgs/reparojson/default.nix @@ -0,0 +1,25 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "reparojson"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "nsfisis"; + repo = "reparojson"; + rev = "v${version}"; + hash = "sha256-kex4LNS7yT8BbaNE/uZrGED8Rx2QmPgCgPwBnIO2za8="; + }; + cargoHash = "sha256-nFv22XP5bhS++li21VsB4aMJ3q5veH6zsK9cCNTVz0k="; + + meta = { + description = "A simple command-line tool to repair JSON. It only fixes the syntactic errors and never formats the given input."; + homepage = "https://github.com/nsfisis/reparojson"; + license = [lib.licenses.mit]; + mainProgram = "reparojson"; + }; +} -- cgit v1.2.3-70-g09d2