about summary refs log tree commit diff
path: root/pkgs/tools/security/zdns
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-03-30 00:51:22 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-03-30 00:51:22 +0200
commit3481b9b177361019c3ec64bef2199058e44efed8 (patch)
tree14bb959d5a02e56eef79cf269799fa1ec9036f72 /pkgs/tools/security/zdns
parent63be3d6498de5106aa88dc4bdb54dd806070d8d9 (diff)
zdns: init at 20210327-8c53210
Diffstat (limited to 'pkgs/tools/security/zdns')
-rw-r--r--pkgs/tools/security/zdns/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/security/zdns/default.nix b/pkgs/tools/security/zdns/default.nix
new file mode 100644
index 0000000000000..913735d4cb9fc
--- /dev/null
+++ b/pkgs/tools/security/zdns/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "zdns";
+  version = "20210327-${lib.strings.substring 0 7 rev}";
+  rev = "8c53210f0b9a4fe16c70a5d854e9413c3d0c1ba2";
+
+  src = fetchFromGitHub {
+    owner = "zmap";
+    repo = pname;
+    inherit rev;
+    sha256 = "0pdfz1489ynpw72flalnlkwybp683v826icjx7ljys45xvagdvck";
+  };
+
+  vendorSha256 = "0b8h5n01xmhar1a09svb35ah48k9zdy1mn5balq0h2l0jxr05z78";
+
+  subPackages = [ "zdns" ];
+
+  meta = with lib; {
+    description = "CLI DNS lookup tool";
+    homepage = "https://github.com/zmap/zdns";
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ fab ];
+  };
+}