Wolfgang Walther 15f90afb41
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.
2025-05-10 15:17:09 +02:00

37 lines
820 B
Nix

{
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
];
};
})