1 # Getdns and Stubby are released together, see https://getdnsapi.net/releases/
19 maintainers = with lib.maintainers; [
23 license = lib.licenses.bsd3;
24 platforms = lib.platforms.all;
29 getdns = stdenv.mkDerivation rec {
40 url = "https://getdnsapi.net/releases/${pname}-${lib.concatStringsSep "-" (lib.splitVersion version)}/${pname}-${version}.tar.gz";
41 # upstream publishes hashes in hex format
42 sha256 = "f1404ca250f02e37a118aa00cf0ec2cbe11896e060c6d369c6761baea7d55a2c";
56 # https://github.com/getdnsapi/getdns/issues/517
58 substituteInPlace getdns.pc.in \
59 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
60 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
63 postInstall = "rm -r $out/share/doc";
65 meta = metaCommon // {
66 description = "Modern asynchronous DNS API";
68 getdns is an implementation of a modern asynchronous DNS API; the
69 specification was originally edited by Paul Hoffman. It is intended to make all
70 types of DNS information easily available to application developers and non-DNS
71 experts. DNSSEC offers a unique global infrastructure for establishing and
72 enhancing cryptographic trust relations. With the development of this API the
73 developers intend to offer application developers a modern and flexible
74 interface that enables end-to-end trust in the DNS architecture, and which will
75 inspire application developers to implement innovative security solutions in
78 homepage = "https://getdnsapi.net";
82 stubby = stdenv.mkDerivation rec {
92 sourceRoot = "${getdns.pname}-${getdns.version}/stubby";
105 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.Security ];
110 < $NIX_BUILD_TOP/$sourceRoot/stubby.yml.example \
114 passthru.settingsExample = builtins.fromJSON (builtins.readFile stubby.stubbyExampleJson);
116 meta = metaCommon // {
117 description = "Local DNS Privacy stub resolver (using DNS-over-TLS)";
118 mainProgram = "stubby";
120 Stubby is an application that acts as a local DNS Privacy stub
121 resolver (using RFC 7858, aka DNS-over-TLS). Stubby encrypts DNS
122 queries sent from a client machine (desktop or laptop) to a DNS
123 Privacy resolver increasing end user privacy. Stubby is developed by
126 homepage = "https://dnsprivacy.org/dns_privacy_daemon_-_stubby/";