nsd: add configFile parameter

Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>

+11 -1
+11 -1
pkgs/servers/dns/nsd/default.nix
··· 10 10 , rootServer ? false 11 11 , rrtypes ? false 12 12 , zoneStats ? false 13 + 14 + , configFile ? "etc/nsd/nsd.conf" 13 15 }: 14 16 15 17 stdenv.mkDerivation rec { ··· 39 41 ++ edf rootServer "root-server" 40 42 ++ edf rrtypes "draft-rrtypes" 41 43 ++ edf zoneStats "zone-stats" 42 - ++ [ "--with-ssl=${openssl.dev}" "--with-libevent=${libevent.dev}" ]; 44 + ++ [ "--with-ssl=${openssl.dev}" 45 + "--with-libevent=${libevent.dev}" 46 + "--with-nsd_conf_file=${configFile}" 47 + "--with-configdir=etc/nsd" 48 + ]; 49 + 50 + patchPhase = '' 51 + sed 's@$(INSTALL_DATA) nsd.conf.sample $(DESTDIR)$(nsdconfigfile).sample@@g' -i Makefile.in 52 + ''; 43 53 44 54 meta = with stdenv.lib; { 45 55 homepage = http://www.nlnetlabs.nl;