···11+{ stdenv, fetchurl, libtool, unbound, libidn, m4, file
22+, openssl, doxygen, autoreconfHook, automake }:
33+44+stdenv.mkDerivation rec {
55+ pname = "getdns";
66+ name = "${pname}-${version}";
77+ version = "1.3.0";
88+99+ src = fetchurl {
1010+ url = "https://getdnsapi.net/releases/${pname}-1-3-0/${pname}-${version}.tar.gz";
1111+ sha256 = "920fa2e07c72fd0e5854db1820fa777108009fc5cb702f9aa5155ef58b12adb1";
1212+ };
1313+1414+ nativeBuildInputs = [ libtool m4 autoreconfHook automake file ];
1515+1616+ buildInputs = [ unbound libidn openssl doxygen ];
1717+1818+ patchPhase = ''
1919+ substituteInPlace m4/acx_openssl.m4 \
2020+ --replace /usr/local/ssl ${openssl.dev}
2121+ '';
2222+2323+ meta = with stdenv.lib; {
2424+ description = "A modern asynchronous DNS API";
2525+ longDescription = ''
2626+ getdns is an implementation of a modern asynchronous DNS API; the
2727+ specification was originally edited by Paul Hoffman. It is intended to make all
2828+ types of DNS information easily available to application developers and non-DNS
2929+ experts. DNSSEC offers a unique global infrastructure for establishing and
3030+ enhancing cryptographic trust relations. With the development of this API the
3131+ developers intend to offer application developers a modern and flexible
3232+ interface that enables end-to-end trust in the DNS architecture, and which will
3333+ inspire application developers to implement innovative security solutions in
3434+ their applications.
3535+'';
3636+ homepage = https://getdnsapi.net;
3737+ maintainers = with maintainers; [ leenaars ];
3838+ license = licenses.bsd3;
3939+ platforms = platforms.all;
4040+ };
4141+}