Skip to content

Commit

Permalink
nsd: add configFile parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
  • Loading branch information
hrdinka committed Dec 28, 2017
1 parent f3949a2 commit 0269438
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/servers/dns/nsd/default.nix
Expand Up @@ -10,6 +10,8 @@
, rootServer ? false
, rrtypes ? false
, zoneStats ? false

, configFile ? "etc/nsd/nsd.conf"
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -39,7 +41,15 @@ stdenv.mkDerivation rec {
++ edf rootServer "root-server"
++ edf rrtypes "draft-rrtypes"
++ edf zoneStats "zone-stats"
++ [ "--with-ssl=${openssl.dev}" "--with-libevent=${libevent.dev}" ];
++ [ "--with-ssl=${openssl.dev}"
"--with-libevent=${libevent.dev}"
"--with-nsd_conf_file=${configFile}"
"--with-configdir=etc/nsd"
];

patchPhase = ''
sed 's@$(INSTALL_DATA) nsd.conf.sample $(DESTDIR)$(nsdconfigfile).sample@@g' -i Makefile.in
'';

meta = with stdenv.lib; {
homepage = http://www.nlnetlabs.nl;
Expand Down

0 comments on commit 0269438

Please sign in to comment.