Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 nodejs, 6 nix-update-script, 7}: 8 9buildNpmPackage rec { 10 pname = "json-sort-cli"; 11 version = "3.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "tillig"; 15 repo = "json-sort-cli"; 16 tag = "v${version}"; 17 hash = "sha256-KJCT1QwjXAmAlsLxAgNV7XXtpSytlCEbPTZYFoEZgww="; 18 }; 19 20 npmDepsHash = "sha256-V+uKK3y3ImTHT6HSCmzlQUB+BqGYHyQyIB35uiIRNmg="; 21 dontNpmBuild = true; 22 23 doCheck = true; 24 checkPhase = '' 25 runHook preCheck 26 npm run test 27 runHook postCheck 28 ''; 29 30 passthru.updateScript = nix-update-script { }; 31 32 meta = { 33 description = "CLI interface to json-stable-stringify"; 34 homepage = "https://github.com/tillig/json-sort-cli"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ hasnep ]; 37 inherit (nodejs.meta) platforms; 38 mainProgram = "json-sort"; 39 }; 40}