2021-05-20 23:08:51 +00:00
|
|
|
{ fetchFromGitLab, installShellFiles, lib, python3, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nvd";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.2.3";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "khumba";
|
|
|
|
repo = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256:005nh24j01s0hd5j0g0qp67wpivpjwryxyyh6y44jijb4arrfrjf";
|
2021-05-20 23:08:51 +00: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;
|
|
|
|
};
|
|
|
|
}
|