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

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

35 lines
876 B
Nix
Raw Normal View History

2021-05-17 03:12:26 +02:00
{ fetchFromGitLab, installShellFiles, lib, python3, stdenv }:
stdenv.mkDerivation rec {
pname = "nvd";
2021-08-29 11:11:24 +02:00
version = "0.1.2";
2021-05-17 03:12:26 +02:00
src = fetchFromGitLab {
owner = "khumba";
repo = pname;
2021-08-29 11:11:24 +02:00
# There is a 0.1.2 release but no tag yet
# https://gitlab.com/khumba/nvd/-/issues/7
rev = "13d3ab1255e0de03693cecb7da9764c9afd5d472";
sha256 = "1537s7j0m0hkahf0s1ai7bm94xj9fz6b9x78py0dn3cgnl9bfzla";
2021-05-17 03:12:26 +02:00
};
buildInputs = [ python3 ];
nativeBuildInputs = [ installShellFiles ];
installPhase = ''
runHook preInstall
install -m555 -Dt $out/bin src/nvd
installManPage src/nvd.1
runHook postInstall
'';
meta = with lib; {
description = "Nix/NixOS package version diff tool";
homepage = "https://gitlab.com/khumba/nvd";
license = licenses.asl20;
maintainers = with maintainers; [ khumba ];
platforms = platforms.all;
};
}