depot/third_party/nixpkgs/pkgs/tools/networking/pdnsd/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

28 lines
697 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "pdnsd";
version = "1.2.9a-par";
src = fetchurl {
url = "http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-${version}.tar.gz";
sha256 = "0yragv5zk77a1hfkpnsh17vvsw8b14d6mzfng4bb7i58rb83an5v";
};
patchPhase = ''
sed -i 's/.*(cachedir).*/:/' Makefile.in
'';
configureFlags = [ "--enable-ipv6" ];
# fix ipv6 on darwin
CPPFLAGS = "-D__APPLE_USE_RFC_3542";
meta = with lib; {
description = "Permanent DNS caching";
homepage = "http://members.home.nl/p.a.rombouts/pdnsd";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [viric];
};
}