2023-08-22 20:05:09 +00:00
|
|
|
{ fetchFromGitLab
|
|
|
|
, installShellFiles
|
|
|
|
, lib
|
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-05-20 23:08:51 +00:00
|
|
|
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";
|
2023-08-22 20:05:09 +00:00
|
|
|
repo = "nvd";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
|
|
hash = "sha256-TmaXsyJLRkmIN9D77jOXd8fLj7kYPCBLg0AHIImAtgA=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
buildInputs = [
|
|
|
|
python3
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -m555 -Dt $out/bin src/nvd
|
|
|
|
installManPage src/nvd.1
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Nix/NixOS package version diff tool";
|
|
|
|
homepage = "https://gitlab.com/khumba/nvd";
|
2023-08-22 20:05:09 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
mainProgram = "nvd";
|
|
|
|
maintainers = with lib.maintainers; [ khumba ];
|
|
|
|
platforms = lib.platforms.all;
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
})
|