summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Keller <arne.keller@posteo.de>2024-12-20 20:02:43 +0100
committerGitHub <noreply@github.com>2024-12-20 20:02:43 +0100
commit08891ddca4c53f09579f1c81a8124b4c3f24c2fd (patch)
treef45eef4432bc2f15053ec3353d8f54ab9d47dd00
parentsteamguard-cli: 0.14.2 -> 0.15.0 (#366572) (diff)
parentdnsdbq: init at 2.6.7 (diff)
downloadnixpkgs-08891ddca4c53f09579f1c81a8124b4c3f24c2fd.tar.gz
dnsdbq: init at 2.6.7 (#352135)
-rw-r--r--pkgs/by-name/dn/dnsdbq/package.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/by-name/dn/dnsdbq/package.nix b/pkgs/by-name/dn/dnsdbq/package.nix
new file mode 100644
index 000000000000..fed65506ec3d
--- /dev/null
+++ b/pkgs/by-name/dn/dnsdbq/package.nix
@@ -0,0 +1,60 @@
+{
+ curl,
+ dnsdbq,
+ fetchFromGitHub,
+ jansson,
+ lib,
+ nix-update-script,
+ stdenv,
+ testers,
+}:
+stdenv.mkDerivation rec {
+ pname = "dnsdbq";
+ version = "2.6.7";
+
+ src = fetchFromGitHub {
+ owner = "dnsdb";
+ repo = "dnsdbq";
+ rev = "v${version}";
+ hash = "sha256-VeoLgDLly5bDIzvcf6Xb+tqCaQxIzeSpoW3ij+Hq4O8=";
+ };
+
+ passthru = {
+ updateScript = nix-update-script { };
+ tests = {
+ version = testers.testVersion {
+ package = dnsdbq;
+ command = "dnsdbq -v";
+ };
+ };
+ };
+
+ nativeBuildInputs = [
+ curl # curl-config
+ ];
+
+ buildInputs = [
+ curl
+ jansson
+ ];
+
+ installPhase = ''
+ runHook preInstall
+ mkdir -p $out/bin
+ cp dnsdbq $out/bin
+ mkdir -p $out/man/man1
+ cp dnsdbq.man $out/man/man1/dnsdbq.1
+ runHook postInstall
+ '';
+
+ extraOutputsToInstall = [ "man" ];
+
+ meta = {
+ description = "C99 program that accesses passive DNS database systems";
+ homepage = "https://github.com/dnsdb/dnsdbq";
+ license = lib.licenses.asl20;
+ maintainers = with lib.maintainers; [ x123 ];
+ mainProgram = "dnsdbq";
+ platforms = lib.platforms.all;
+ };
+}