about summary refs log tree commit diff
path: root/pkgs/by-name/nv/nvdtools/package.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-01-22 12:01:10 +0000
committerGitHub <noreply@github.com>2024-01-22 12:01:10 +0000
commit3a8094730e6ff9783b31c423af848b63abbeaebb (patch)
tree69bfe4e1abfdf5b0334ae81eb1fa7141b757dd98 /pkgs/by-name/nv/nvdtools/package.nix
parent78b0905b1bfbbfc6879ecb23813966ad1b9639b5 (diff)
parent4e2e46fe89b071e008ee30908770e19c0f89ad2a (diff)
downloadnixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar
nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.gz
nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.bz2
nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.lz
nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.xz
nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.zst
nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/nv/nvdtools/package.nix')
-rw-r--r--pkgs/by-name/nv/nvdtools/package.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/nv/nvdtools/package.nix b/pkgs/by-name/nv/nvdtools/package.nix
new file mode 100644
index 000000000000..b797c50da447
--- /dev/null
+++ b/pkgs/by-name/nv/nvdtools/package.nix
@@ -0,0 +1,31 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "nvdtools";
+  version = "0.1.5";
+
+  src = fetchFromGitHub {
+    owner = "facebookincubator";
+    repo = "nvdtools";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-uB7dfqGaoP9Xx04BykscIFQ2rckaMaj93gh5mhgMqfw=";
+  };
+
+  vendorHash = "sha256-DzhP42DaddIm+/Z3a83rWX5WY+tM1P+vBNe6B91L7E8=";
+
+  ldflags = [
+    "-s"
+    "-w"
+  ];
+
+  meta = with lib; {
+    description = "Tools to work with the feeds (vulnerabilities, CPE dictionary etc.) distributed by National Vulnerability Database";
+    homepage = "https://github.com/facebookincubator/nvdtools";
+    changelog = "https://github.com/facebookincubator/nvdtools/releases/tag/v${version}";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fab ];
+  };
+}