summary refs log tree commit diff
path: root/pkgs/tools/package-management
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2021-05-18 10:56:38 +0200
committerGitHub <noreply@github.com>2021-05-18 10:56:38 +0200
commit762cb764a2359c127cc1cbaa7ef0b924094e8501 (patch)
tree4542e5f0e62ebdcb1f66d54fbe81a2329b867967 /pkgs/tools/package-management
parent42add18071279a9bfbffcf807976ce72925826e1 (diff)
parent7ceeca96d39957484a230b69435169cbb13c1e09 (diff)
downloadnixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.tar
nixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.tar.gz
nixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.tar.bz2
nixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.tar.lz
nixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.tar.xz
nixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.tar.zst
nixpkgs-762cb764a2359c127cc1cbaa7ef0b924094e8501.zip
Merge pull request #123310 from khumba/nvd
nvd: init at 0.1.1
Diffstat (limited to 'pkgs/tools/package-management')
-rw-r--r--pkgs/tools/package-management/nvd/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/nvd/default.nix b/pkgs/tools/package-management/nvd/default.nix
new file mode 100644
index 00000000000..1218ac01f9a
--- /dev/null
+++ b/pkgs/tools/package-management/nvd/default.nix
@@ -0,0 +1,32 @@
+{ fetchFromGitLab, installShellFiles, lib, python3, stdenv }:
+
+stdenv.mkDerivation rec {
+  pname = "nvd";
+  version = "0.1.1";
+
+  src = fetchFromGitLab {
+    owner = "khumba";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0accq0cw6qsxin1fb2bp2ijgjf9akb9qlivkykpfsgnk5qjafv2n";
+  };
+
+  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;
+  };
+}