mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
41 lines
862 B
Nix
41 lines
862 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nodejs,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "json-sort-cli";
|
|
version = "3.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tillig";
|
|
repo = "json-sort-cli";
|
|
tag = "v${version}";
|
|
hash = "sha256-KQHKTDZJpOmD4PTWdeGUtLAqgDfRzFGBXMIgrCIaLSk=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-BuJShV3HIIQZfcC47r/EbnMyCB7EaClFFxbGvQ3/nZo=";
|
|
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";
|
|
};
|
|
}
|