3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/host/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

25 lines
616 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 = ''
makeFlagsArray=(DESTBIN=$out/bin DESTMAN=$out/share/man OWNER=$(id -u) GROUP=$(id -g))
mkdir -p "$out/bin"
mkdir -p "$out/share/man/man1"
'';
installTargets = "install man";
meta = {
description = "`host', a DNS resolution utility";
license = "BSD-style";
};
}