summary refs log tree commit diff
path: root/pkgs/tools/networking/host/default.nix
blob: 85f94ccba10579764aac27d45e57e89c6c11bfe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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 = "DNS resolution utility";
    license = "BSD-style";
    platforms = stdenv.lib.platforms.linux;
  };
}