diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-01-24 17:54:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 17:54:47 +0000 |
commit | 7516dbe35e8813dc6015755e74908104ed023126 (patch) | |
tree | 54eb88d990bfab2a281932faf3492b7ddc02e1b5 /pkgs/servers | |
parent | 47661c831eed86c67976fa7b8277783b91904b89 (diff) | |
parent | 6bcf89f2174275d11bacb4076e3318c5578708b1 (diff) | |
download | nixlib-7516dbe35e8813dc6015755e74908104ed023126.tar nixlib-7516dbe35e8813dc6015755e74908104ed023126.tar.gz nixlib-7516dbe35e8813dc6015755e74908104ed023126.tar.bz2 nixlib-7516dbe35e8813dc6015755e74908104ed023126.tar.lz nixlib-7516dbe35e8813dc6015755e74908104ed023126.tar.xz nixlib-7516dbe35e8813dc6015755e74908104ed023126.tar.zst nixlib-7516dbe35e8813dc6015755e74908104ed023126.zip |
Merge pull request #22045 from rnhmjoj/recursor
PowerDNS Recursor: add package and service
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/dns/pdns-recursor/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/servers/dns/pdns-recursor/default.nix b/pkgs/servers/dns/pdns-recursor/default.nix new file mode 100644 index 000000000000..70deadb74e14 --- /dev/null +++ b/pkgs/servers/dns/pdns-recursor/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, pkgconfig, boost +, openssl, systemd, lua, luajit, protobuf +, enableLua ? false +, enableProtoBuf ? false +}: + +assert enableLua -> lua != null && luajit != null; +assert enableProtoBuf -> protobuf != null; + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "pdns-recursor-${version}"; + version = "4.0.4"; + + src = fetchurl { + url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2"; + sha256 = "0k8y9zxj2lz4rq782vgzr28yd43q0hwlnvszwq0k9l6c967pff13"; + }; + + buildInputs = [ + boost openssl pkgconfig systemd + ] ++ optional enableLua [ lua luajit ] + ++ optional enableProtoBuf protobuf; + + configureFlags = [ + "--enable-reproducible" + "--with-systemd" + ]; + + meta = { + description = "A recursive DNS server"; + homepage = http://www.powerdns.com/; + platforms = platforms.linux; + license = licenses.gpl2; + maintainers = with maintainers; [ rnhmjoj ]; + }; +} |