1{ stdenv, fetchurl, openssl, libtool, perl, libxml2 }:
2
3let version = "9.10.3"; in
4
5stdenv.mkDerivation rec {
6 name = "bind-${version}";
7
8 src = fetchurl {
9 url = "http://ftp.isc.org/isc/bind9/${version}/${name}.tar.gz";
10 sha256 = "1w4gp4hdkb452nmz91l413d1rx89isl2l6wv8kpbdd2afpc3phws";
11 };
12
13 patchPhase = ''
14 sed -i 's/^\t.*run/\t/' Makefile.in
15 '';
16
17 buildInputs = [ openssl libtool perl libxml2 ];
18
19 configureFlags = [
20 "--localstatedir=/var"
21 "--with-libtool"
22 "--with-libxml2=${libxml2}"
23 "--with-openssl=${openssl}"
24 "--without-atf"
25 "--without-dlopen"
26 "--without-docbook-xsl"
27 "--without-gssapi"
28 "--without-idn"
29 "--without-idnlib"
30 "--without-pkcs11"
31 "--without-purify"
32 "--without-python"
33 ];
34
35 meta = {
36 homepage = "http://www.isc.org/software/bind";
37 description = "Domain name server";
38 license = stdenv.lib.licenses.isc;
39
40 maintainers = with stdenv.lib.maintainers; [viric simons];
41 platforms = with stdenv.lib.platforms; unix;
42 };
43}