nvd/default.nix

34 lines
729 B
Nix
Raw Normal View History

2021-04-10 06:05:12 +02:00
{ pkgs ? import <nixpkgs> {} }:
2021-04-10 18:10:20 +02:00
let
inherit (pkgs) lib nix-gitignore python3 stdenv;
in
2021-04-10 06:05:12 +02:00
stdenv.mkDerivation {
2021-04-10 18:10:20 +02:00
pname = "nvd";
2021-05-17 03:04:37 +02:00
version = "0.1.1";
2021-04-10 06:05:12 +02:00
src = nix-gitignore.gitignoreSourcePure [ ./.gitignore ] ./src;
buildInputs = [ python3 ];
buildPhase = ''
runHook preBuild
gzip nvd.1
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -m555 -Dt $out/bin nvd
install -m444 -Dt $out/share/man/man1 nvd.1.gz
runHook postInstall
'';
2021-04-10 18:10:20 +02:00
meta = {
description = "Nix/NixOS package version diff tool";
homepage = "https://gitlab.com/khumba/nvd";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.khumba ];
platforms = lib.platforms.all;
};
2021-04-10 06:05:12 +02:00
}