2014-04-20 19:16:36 +04:00
|
|
|
{ stdenv, fetchurl, openssl, expat, libevent }:
|
2010-02-09 10:28:32 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-23 08:49:51 +03:00
|
|
|
name = "unbound-${version}";
|
2016-02-08 04:20:00 +03:00
|
|
|
version = "1.5.7";
|
2010-02-09 10:28:32 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://unbound.net/downloads/${name}.tar.gz";
|
2016-02-08 04:20:00 +03:00
|
|
|
sha256 = "1a0wfgp6wqpf7cxlcbprqhnjx6z9ywf0rhrpcf7x98l1mbjqh82b";
|
2010-02-09 10:28:32 +03:00
|
|
|
};
|
2014-12-23 08:49:51 +03:00
|
|
|
|
2015-04-21 03:50:39 +03:00
|
|
|
buildInputs = [ openssl expat libevent ];
|
2015-01-18 03:35:30 +03:00
|
|
|
|
2014-12-23 08:49:51 +03:00
|
|
|
configureFlags = [
|
|
|
|
"--with-ssl=${openssl}"
|
|
|
|
"--with-libexpat=${expat}"
|
|
|
|
"--with-libevent=${libevent}"
|
|
|
|
"--localstatedir=/var"
|
2015-04-21 03:50:39 +03:00
|
|
|
"--sysconfdir=/etc"
|
2014-12-23 08:49:51 +03:00
|
|
|
];
|
2010-02-09 10:28:32 +03:00
|
|
|
|
2015-04-21 03:50:39 +03:00
|
|
|
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
|
|
|
|
|
2016-02-08 04:20:00 +03:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 13:49:53 +04:00
|
|
|
description = "Validating, recursive, and caching DNS resolver";
|
2016-02-08 04:20:00 +03:00
|
|
|
license = licenses.bsd3;
|
2010-02-09 13:17:13 +03:00
|
|
|
homepage = http://www.unbound.net;
|
2016-02-08 04:20:00 +03:00
|
|
|
maintainers = with maintainers; [ ehmry fpletz ];
|
2014-04-20 19:16:36 +04:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-02-09 10:28:32 +03:00
|
|
|
};
|
|
|
|
}
|