about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/getdns/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/getdns/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/getdns/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/getdns/default.nix b/nixpkgs/pkgs/development/libraries/getdns/default.nix
new file mode 100644
index 000000000000..edf0ac27ea97
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/getdns/default.nix
@@ -0,0 +1,37 @@
+{ lib, stdenv, fetchurl, unbound, libidn2, openssl, doxygen, cmake }:
+
+stdenv.mkDerivation rec {
+  pname = "getdns";
+  version = "1.6.0";
+  versionRewrite = builtins.splitVersion version;
+
+  src = fetchurl {
+    url = "https://getdnsapi.net/releases/${pname}-${
+        builtins.concatStringsSep "-" versionRewrite
+      }/${pname}-${version}.tar.gz";
+    sha256 = "0jhg7258wz287kjymimvdvv04n69lwxdc3sb62l2p453f5s77ra0";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  buildInputs = [ unbound libidn2 openssl doxygen ];
+
+  meta = with lib; {
+    description = "A modern asynchronous DNS API";
+    longDescription = ''
+      getdns is an implementation of a modern asynchronous DNS API; the
+      specification was originally edited by Paul Hoffman. It is intended to make all
+      types of DNS information easily available to application developers and non-DNS
+      experts. DNSSEC offers a unique global infrastructure for establishing and
+      enhancing cryptographic trust relations. With the development of this API the
+      developers intend to offer application developers a modern and flexible
+      interface that enables end-to-end trust in the DNS architecture, and which will
+      inspire application developers to implement innovative security solutions in
+      their applications.
+    '';
+    homepage = "https://getdnsapi.net";
+    maintainers = with maintainers; [ leenaars ehmry ];
+    license = licenses.bsd3;
+    platforms = platforms.all;
+  };
+}