diff options
author | Alexey Shmalko <rasen.dubi@gmail.com> | 2016-09-20 11:07:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-20 11:07:51 +0300 |
commit | 60cfc558be8e64ee0ce02509ff7e32f5dc67cf19 (patch) | |
tree | f17843d161e6aba40ad44d91c14a1e102cf0c408 /pkgs/servers | |
parent | 631c54c7a60bfd6dd7d8401953dcd3adfa90b1d5 (diff) | |
parent | b0a1c0b343a037cd0f162a4e890a93f3c1cfe894 (diff) | |
download | nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.tar nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.tar.gz nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.tar.bz2 nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.tar.lz nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.tar.xz nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.tar.zst nixlib-60cfc558be8e64ee0ce02509ff7e32f5dc67cf19.zip |
Merge pull request #18718 from Mic92/powerdns
powerdns: init at 4.0.1
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/dns/powerdns/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/servers/dns/powerdns/default.nix b/pkgs/servers/dns/powerdns/default.nix new file mode 100644 index 000000000000..63cd71e146b9 --- /dev/null +++ b/pkgs/servers/dns/powerdns/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl, pkgconfig, + boost, libyamlcpp, libsodium, sqlite, protobuf, + libmysql, postgresql, lua, openldap, geoip, curl +}: + +stdenv.mkDerivation rec { + name = "powerdns-${version}"; + version = "4.0.1"; + + src = fetchurl { + url = "http://downloads.powerdns.com/releases/pdns-${version}.tar.bz2"; + sha256 = "1mzdj5077cn6cip51sxknz5hx0cyqlsrix39b7l30i36lvafx4fi"; + }; + + buildInputs = [ boost libmysql postgresql lua openldap sqlite protobuf geoip libyamlcpp pkgconfig libsodium curl ]; + + # nix destroy with-modules arguments, when using configureFlags + preConfigure = '' + configureFlagsArray=( + "--with-modules=bind gmysql geoip gpgsql gsqlite3 ldap lua pipe random remote" + --with-sqlite3 + --with-socketdir=/var/lib/powerdns + --enable-libsodium + --enable-tools + --disable-dependency-tracking + --disable-silent-rules + --enable-reproducible + --enable-unit-tests + ) + ''; + checkPhase = "make check"; + + meta = with stdenv.lib; { + description = "Authoritative DNS server"; + homepage = http://www.powerdns.com/; + platforms = platforms.linux; + # cannot find postgresql libs on macos x + license = licenses.gpl2; + maintainers = [ maintainers.mic92 ]; + }; +} |