From a4952026d240b18ffc5503c9b481aac861fbe35b Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Fri, 17 Jul 2026 17:33:43 +0100 Subject: [PATCH] npc: init at 1.0.0 --- pkgs/by-name/np/npc/package.nix | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/np/npc/package.nix diff --git a/pkgs/by-name/np/npc/package.nix b/pkgs/by-name/np/npc/package.nix new file mode 100644 index 0000000000000..2db793cf7b82d --- /dev/null +++ b/pkgs/by-name/np/npc/package.nix @@ -0,0 +1,40 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + git, + nix, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "npc"; + version = "1.0.0"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "samestep"; + repo = "npc"; + tag = "v${finalAttrs.version}"; + hash = "sha256-qgg1WwxcpqxmK+xchIWbGQ/EXUJdYje9++CziTFnmtA="; + }; + + cargoHash = "sha256-cxkVBKqFmlHjUrmx2jbGmGgrrZLpVmi/o6HzDKckudQ="; + + env = { + GIT_BIN = lib.getExe git; + NIX_BIN = lib.getExe nix; + }; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Nixpkgs channel history CLI"; + homepage = "https://github.com/samestep/npc"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + samestep + me-and + ]; + }; +})