diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-10-08 16:01:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-08 16:01:15 +0200 |
commit | fa405aa26425e3632032d732edc0b85c8a23a074 (patch) | |
tree | 93d9582554f9bab3682e1f5d43e7089ca9cba023 /pkgs/servers/dns/bind/default.nix | |
parent | 2763d4d4c71cc3c645d223330d8a51dcb1bde157 (diff) | |
download | nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.tar nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.tar.gz nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.tar.bz2 nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.tar.lz nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.tar.xz nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.tar.zst nixpkgs-fa405aa26425e3632032d732edc0b85c8a23a074.zip |
bind: split out dnsutils & host binaries (#18903)
These tools are commonly used but don't require the other bind binaries. Bind's libs are used, so they've also been split into an extra output. The old version of host isn't maintained anymore and was removed From Debian back in 2009: https://packages.qa.debian.org/h/host.html
Diffstat (limited to 'pkgs/servers/dns/bind/default.nix')
-rw-r--r-- | pkgs/servers/dns/bind/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index 309b033bca2..e55b3eeb18b 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1vxs29w4hnl7jcd7sknga58xv1qk2rcpsxyich7cpp7xi77faxd0"; }; - outputs = [ "bin" "dev" "out" "man" ]; + outputs = [ "bin" "lib" "dev" "out" "man" "dnsutils" "host" ]; patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++ stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; @@ -40,6 +40,15 @@ stdenv.mkDerivation rec { moveToOutput bin/bind9-config $dev moveToOutput bin/isc-config.sh $dev + moveToOutput bin/host $host + ln -sf $host/bin/host $bin/bin + + moveToOutput bin/dig $dnsutils + moveToOutput bin/nslookup $dnsutils + moveToOutput bin/nsupdate $dnsutils + ln -sf $dnsutils/bin/{dig,nslookup,nsupdate} $bin/bin + ln -sf $host/bin/host $dnsutils/bin + for f in "$out/lib/"*.la; do sed -i $f -e 's|-L${openssl.dev}|-L${openssl.out}|g' done |