summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/js/json-diff/package.nix
blob: b7746e502721316cbb30c722019f1eefb70462b2 (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
27
28
29
30
31
32
{
  lib,
  buildNpmPackage,
  fetchFromGitHub,
  nix-update-script,
}:

buildNpmPackage (finalAttrs: {
  pname = "json-diff";
  version = "1.0.6";

  src = fetchFromGitHub {
    owner = "andreyvit";
    repo = "json-diff";
    tag = "v${finalAttrs.version}";
    hash = "sha256-b8CtttEmPUIuFba6yn0DhVsSM1RA8Jsl4+zGvk3EZ2s=";
  };

  npmDepsHash = "sha256-hpnmBD9fyudjc3dzxZ5L5mhkCfRbw7BaAHKGf76qVDU=";

  npmBuildScript = "test";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Structural diff for JSON files";
    homepage = "https://github.com/andreyvit/json-diff";
    license = lib.licenses.mit;
    maintainers = [ ];
    mainProgram = "json-diff";
  };
})