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

authored by Franz Pletz and committed by GitHub fa405aa2 2763d4d4

+12 -28
+10 -1
pkgs/servers/dns/bind/default.nix
··· 11 11 sha256 = "1vxs29w4hnl7jcd7sknga58xv1qk2rcpsxyich7cpp7xi77faxd0"; 12 12 }; 13 13 14 - outputs = [ "bin" "dev" "out" "man" ]; 14 + outputs = [ "bin" "lib" "dev" "out" "man" "dnsutils" "host" ]; 15 15 16 16 patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++ 17 17 stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; ··· 39 39 postInstall = '' 40 40 moveToOutput bin/bind9-config $dev 41 41 moveToOutput bin/isc-config.sh $dev 42 + 43 + moveToOutput bin/host $host 44 + ln -sf $host/bin/host $bin/bin 45 + 46 + moveToOutput bin/dig $dnsutils 47 + moveToOutput bin/nslookup $dnsutils 48 + moveToOutput bin/nsupdate $dnsutils 49 + ln -sf $dnsutils/bin/{dig,nslookup,nsupdate} $bin/bin 50 + ln -sf $host/bin/host $dnsutils/bin 42 51 43 52 for f in "$out/lib/"*.la; do 44 53 sed -i $f -e 's|-L${openssl.dev}|-L${openssl.out}|g'
-26
pkgs/tools/networking/host/default.nix
··· 1 - { fetchurl, stdenv }: 2 - 3 - let version = "20000331"; in 4 - 5 - stdenv.mkDerivation { 6 - name = "host-${version}"; 7 - 8 - src = fetchurl { 9 - url = "mirror://debian/pool/main/h/host/host_${version}.orig.tar.gz"; 10 - sha256 = "1g352k80arhwyidsa95nk28xjvzyypmwv3kga2451m3g7fmdqki1"; 11 - }; 12 - 13 - preConfigure = '' 14 - makeFlagsArray=(DESTBIN=$out/bin DESTMAN=$out/share/man OWNER=$(id -u) GROUP=$(id -g)) 15 - mkdir -p "$out/bin" 16 - mkdir -p "$out/share/man/man1" 17 - ''; 18 - 19 - installTargets = "install man"; 20 - 21 - meta = { 22 - description = "DNS resolution utility"; 23 - license = "BSD-style"; 24 - platforms = stdenv.lib.platforms.linux; 25 - }; 26 - }
+2 -1
pkgs/top-level/all-packages.nix
··· 2081 2081 2082 2082 horst = callPackage ../tools/networking/horst { }; 2083 2083 2084 - host = callPackage ../tools/networking/host { }; 2084 + host = bind.host; 2085 2085 2086 2086 hping = callPackage ../tools/networking/hping { }; 2087 2087 ··· 9817 9817 sabnzbd = callPackage ../servers/sabnzbd { }; 9818 9818 9819 9819 bind = callPackage ../servers/dns/bind { }; 9820 + dnsutils = bind.dnsutils; 9820 9821 9821 9822 bird = callPackage ../servers/bird { }; 9822 9823 bird6 = bird.override { enableIPv6 = true; };