From 15f90afb41d90eec157eaffabe295563450a3795 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 10 May 2025 12:09:08 +0200 Subject: [PATCH] nixpkgs-vet: init at 0.1.4 This is currently run in CI, but not from nixpkgs. Instead it's pulled from the upstream repo. There is only a x86_64-linux release, though, which makes this approach inadequate for local usage on other systems. We already use a pinned nixpkgs revision in CI, so we should move to use that for nixpkgs-vet, too. Shamelessly added philiptaron and willbush as the maintainers, because they have been actively maintaining the upstream package lately. --- pkgs/by-name/ni/nixpkgs-vet/package.nix | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/ni/nixpkgs-vet/package.nix diff --git a/pkgs/by-name/ni/nixpkgs-vet/package.nix b/pkgs/by-name/ni/nixpkgs-vet/package.nix new file mode 100644 index 0000000000000..4a57d4f48c9e6 --- /dev/null +++ b/pkgs/by-name/ni/nixpkgs-vet/package.nix @@ -0,0 +1,36 @@ +{ + fetchFromGitHub, + lib, + nix, + nix-update-script, + rustPlatform, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "nixpkgs-vet"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "NixOS"; + repo = "nixpkgs-vet"; + tag = finalAttrs.version; + hash = "sha256-J61eOTeDMHt9f1XmKVrEMAFUgwHGmMxDoSyY3v72QVY="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-H2JAIMJeVqp8xq75eLEBKiK2pBrgC7vgXXlqbrSUifE="; + + doCheck = false; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Tool to vet (check) Nixpkgs, including its pkgs/by-name directory"; + homepage = "https://github.com/NixOS/nixpkgs-vet"; + license = lib.licenses.mit; + mainProgram = "nixpkgs-vet"; + maintainers = with lib.maintainers; [ + philiptaron + willbush + ]; + }; +})