1 { lib, stdenv, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
5 version = "1.2.9a-par";
8 url = "http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-${version}.tar.gz";
9 sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
13 # fix build with linux headers >= 5.13
14 lib.optional stdenv.isLinux
16 name = "fix-build-linux-headers-gte-5.13.patch";
17 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/net-dns/pdnsd/files/pdnsd-1.2.9a-linux-5.13_build_fix.patch?id=7ce35657f269c3b7016e8940ad36e59cf06e12a4";
18 hash = "sha256-Sh/0ZyiQpDvFZOWE9OCQ9+ocXurjzJvrE4WNWaGwAwk=";
22 sed -i 's/.*(cachedir).*/:/' Makefile.in
25 configureFlags = [ "--enable-ipv6" ];
28 CPPFLAGS = "-D__APPLE_USE_RFC_3542";
31 description = "Permanent DNS caching";
32 homepage = "http://members.home.nl/p.a.rombouts/pdnsd";
33 license = licenses.gpl3Plus;
34 platforms = platforms.unix;
35 maintainers = with maintainers; [viric];