nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, libtool, unbound, libidn, m4, file
2, openssl, doxygen, autoreconfHook, automake }:
3
4stdenv.mkDerivation rec {
5 pname = "getdns";
6 name = "${pname}-${version}";
7 version = "1.5.1";
8
9 src = fetchurl {
10 url = "https://getdnsapi.net/releases/${pname}-1-5-1/${pname}-${version}.tar.gz";
11 sha256 = "5686e61100599c309ce03535f9899a5a3d94a82cc08d10718e2cd73ad3dc28af";
12 };
13
14 nativeBuildInputs = [ libtool m4 autoreconfHook automake file ];
15
16 buildInputs = [ unbound libidn openssl doxygen ];
17
18 patchPhase = ''
19 substituteInPlace m4/acx_openssl.m4 \
20 --replace /usr/local/ssl ${openssl.dev}
21 '';
22
23 meta = with stdenv.lib; {
24 description = "A modern asynchronous DNS API";
25 longDescription = ''
26 getdns is an implementation of a modern asynchronous DNS API; the
27 specification was originally edited by Paul Hoffman. It is intended to make all
28 types of DNS information easily available to application developers and non-DNS
29 experts. DNSSEC offers a unique global infrastructure for establishing and
30 enhancing cryptographic trust relations. With the development of this API the
31 developers intend to offer application developers a modern and flexible
32 interface that enables end-to-end trust in the DNS architecture, and which will
33 inspire application developers to implement innovative security solutions in
34 their applications.
35'';
36 homepage = https://getdnsapi.net;
37 maintainers = with maintainers; [ leenaars ];
38 license = licenses.bsd3;
39 platforms = platforms.all;
40 };
41}