3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nvd/default.nix

35 lines
876 B
Nix
Raw Normal View History

2021-05-17 02:12:26 +01:00
{ fetchFromGitLab, installShellFiles, lib, python3, stdenv }:
stdenv.mkDerivation rec {
pname = "nvd";
2021-08-29 10:11:24 +01:00
version = "0.1.2";
2021-05-17 02:12:26 +01:00
src = fetchFromGitLab {
owner = "khumba";
repo = pname;
2021-08-29 10:11:24 +01: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 02:12:26 +01: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;
};
}