Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
862 B · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildNpmPackage, fetchFromGitHub, nodejs, nix-update-script,}:
buildNpmPackage rec { pname = "json-sort-cli"; version = "3.0.0";
src = fetchFromGitHub { owner = "tillig"; repo = "json-sort-cli"; tag = "v${version}"; hash = "sha256-KJCT1QwjXAmAlsLxAgNV7XXtpSytlCEbPTZYFoEZgww="; };
npmDepsHash = "sha256-V+uKK3y3ImTHT6HSCmzlQUB+BqGYHyQyIB35uiIRNmg="; dontNpmBuild = true;
doCheck = true; checkPhase = '' runHook preCheck npm run test runHook postCheck '';
passthru.updateScript = nix-update-script { };
meta = { description = "CLI interface to json-stable-stringify"; homepage = "https://github.com/tillig/json-sort-cli"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hasnep ]; inherit (nodejs.meta) platforms; mainProgram = "json-sort"; };}