summary refs log tree commit diff
path: root/pkgs/tools/networking/s6-dns/default.nix
blob: 4ffa2d931a1189229e1e37ba1d7834a499eee581 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv
, fetchurl
, gnumake40
, skalibs
}:

let

  version = "2.0.0.0";

in stdenv.mkDerivation rec {

  name = "s6-dns-${version}";

  src = fetchurl {
    url = "http://www.skarnet.org/software/s6-dns/${name}.tar.gz";
    sha256 = "07k6rzgsgcxr0bq209as79sjn2nrcjj9mlmk9vvy1hvsag0xnkcq";
  };

  dontDisableStatic = true;

  buildInputs = [ gnumake40 ];

  configureFlags = [
    "--includedir=\${prefix}/include"
    "--libdir=\${prefix}/lib"
    "--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
    "--with-include=${skalibs}/include"
    "--with-lib=${skalibs}/lib"
    "--with-dynlib=${skalibs}/lib"
  ] ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]);

  meta = {
    homepage = http://www.skarnet.org/software/s6-dns/;
    description = "A suite of DNS client programs and libraries for Unix systems";
    platforms = stdenv.lib.platforms.all;
    license = stdenv.lib.licenses.isc;
  };

}