nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit cb392de5c0de5c302aeb5522dfaebe34314cfa21
parent c8862aac2ee5b3e32d8e09bf69049051ebe438b7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 28 Jul 2024 11:21:40 +0400

Add ajv-cli

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/ajv-cli/default.nix | 26++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -320,6 +320,7 @@ lib.makeScope newScope ( aamath = callPackage ./misc/aamath { }; acp = callPackage ./misc/acp { }; + ajv-cli = callPackage ./misc/ajv-cli { }; apibackuper = callPackage ./misc/apibackuper { }; arduinojson = callPackage ./misc/arduinojson { }; ascii-dash = callPackage ./misc/ascii-dash { }; diff --git a/pkgs/misc/ajv-cli/default.nix b/pkgs/misc/ajv-cli/default.nix @@ -0,0 +1,26 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, +}: + +buildNpmPackage rec { + pname = "ajv-cli"; + version = "6.0.0-beta.4"; + + src = fetchFromGitHub { + owner = "jirutka"; + repo = "ajv-cli"; + rev = "v${version}"; + hash = "sha256-qk/UQskIybDqU9DSqK5RhPk4ho0Pu1qDcUKra72IMUc="; + }; + + npmDepsHash = "sha256-oPJh7kUdZn94NcV5SmNWt4hRvVEF8G4kKux1EV/Z9e8="; + + meta = { + description = "Command-line interface for Ajv JSON Validator"; + homepage = "https://github.com/jirutka/ajv-cli"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.sikmir ]; + }; +}