1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/servers/dns/powerdns/default.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

2018-02-17 11:47:20 +00:00
{ stdenv, fetchurl, pkgconfig
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
2016-09-17 22:30:27 +01:00
}:
stdenv.mkDerivation rec {
name = "powerdns-${version}";
2018-02-17 11:47:20 +00:00
version = "4.1.1";
2016-09-17 22:30:27 +01:00
src = fetchurl {
url = "http://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
2018-02-17 11:47:20 +00:00
sha256 = "1fh4zgj0gxgcnnhnih8k6fbw18hb9brkkrfpx3mj8b4a3hr8ilq8";
2016-09-17 22:30:27 +01:00
};
nativeBuildInputs = [ pkgconfig ];
2018-02-17 11:47:20 +00:00
buildInputs = [
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
libyamlcpp libsodium curl opendbx unixODBC botan2
];
patches = [
# checksum type not found, maybe a dependency is to old?
./skip-sha384-test.patch
];
2016-09-17 22:30:27 +01:00
# nix destroy with-modules arguments, when using configureFlags
preConfigure = ''
configureFlagsArray=(
2018-02-17 11:47:20 +00:00
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
2016-09-17 22:30:27 +01:00
--with-sqlite3
--with-socketdir=/var/lib/powerdns
--enable-libsodium
2018-02-17 11:47:20 +00:00
--enable-botan
2016-09-17 22:30:27 +01:00
--enable-tools
--disable-dependency-tracking
--disable-silent-rules
--enable-reproducible
--enable-unit-tests
)
'';
2018-02-17 11:47:20 +00:00
doCheck = true;
2016-09-17 22:30:27 +01:00
meta = with stdenv.lib; {
description = "Authoritative DNS server";
homepage = https://www.powerdns.com;
2016-09-17 22:30:27 +01:00
platforms = platforms.linux;
# cannot find postgresql libs on macos x
license = licenses.gpl2;
2017-10-18 19:49:23 +01:00
maintainers = [ maintainers.mic92 ];
2016-09-17 22:30:27 +01:00
};
}