aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkgs/reparojson/default.nix
blob: ae8ab6ed1e6107332d57b6bde1f6de133498ecfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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";
  };
}