aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkgs/reparojson/default.nix
blob: 1a3c26e8d12ed25577fe81b9360c7863c0170131 (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
26
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:

rustPlatform.buildRustPackage rec {
  pname = "reparojson";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "nsfisis";
    repo = "reparojson";
    rev = "v${version}";
    hash = "sha256-dJzOR0J63sDb/gfm+H5KwdcAdqcFCHXuCtj6C6sMQK4=";
    fetchSubmodules = true;
  };
  cargoHash = "sha256-Coj64lPl7o8RjKI/6CqmwiIfNnegGeG9D6/yP/zuyh0=";

  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";
  };
}