nixpkgs/pkgs/tools/package-management/nvd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
825 B
Nix
Raw Normal View History

{ fetchFromGitLab
, installShellFiles
, lib
, python3
, stdenv
}:
2021-05-17 01:12:26 +00:00
2023-08-17 11:01:56 +00:00
stdenv.mkDerivation (finalAttrs: {
2021-05-17 01:12:26 +00:00
pname = "nvd";
version = "0.2.3";
2021-05-17 01:12:26 +00:00
src = fetchFromGitLab {
owner = "khumba";
repo = "nvd";
2023-08-17 11:01:56 +00:00
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-TmaXsyJLRkmIN9D77jOXd8fLj7kYPCBLg0AHIImAtgA=";
2021-05-17 01:12:26 +00:00
};
buildInputs = [
python3
];
2021-05-17 01:12:26 +00:00
nativeBuildInputs = [
installShellFiles
];
2021-05-17 01:12:26 +00:00
installPhase = ''
runHook preInstall
install -m555 -Dt $out/bin src/nvd
installManPage src/nvd.1
runHook postInstall
'';
meta = {
2021-05-17 01:12:26 +00:00
description = "Nix/NixOS package version diff tool";
homepage = "https://gitlab.com/khumba/nvd";
license = lib.licenses.asl20;
2023-08-17 11:02:22 +00:00
mainProgram = "nvd";
maintainers = with lib.maintainers; [ khumba ];
platforms = lib.platforms.all;
2021-05-17 01:12:26 +00:00
};
2023-08-17 11:01:56 +00:00
})