25 lines
575 B
Nix
25 lines
575 B
Nix
|
{ fetchurl, stdenv }:
|
||
|
|
||
|
let version = "20000331"; in
|
||
|
stdenv.mkDerivation {
|
||
|
name = "host-${version}";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "mirror://debian/pool/main/h/host/host_${version}.orig.tar.gz";
|
||
|
sha256 = "1g352k80arhwyidsa95nk28xjvzyypmwv3kga2451m3g7fmdqki1";
|
||
|
};
|
||
|
|
||
|
preConfigure = ''
|
||
|
substituteInPlace "Makefile" \
|
||
|
--replace "/usr/local" "$out" \
|
||
|
--replace '-o $(OWNER) -g $(GROUP)' ""
|
||
|
|
||
|
ensureDir "$out/bin"
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "`host', a DNS resolution utility";
|
||
|
license = "BSD-style";
|
||
|
};
|
||
|
}
|