nixpkgs/pkgs/servers/dns/pdns-recursor/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1,015 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, boost, nixosTests
2017-01-18 00:27:26 +01:00
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
stdenv.mkDerivation rec {
pname = "pdns-recursor";
2022-08-01 06:26:07 +02:00
version = "4.7.1";
2017-01-18 00:27:26 +01:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
2022-08-01 06:26:07 +02:00
sha256 = "sha256-0vlFc6bw5joQNMorMBwn6/LhMAplW6ZpzFAtXqjW7Gg=";
2017-01-18 00:27:26 +01:00
};
nativeBuildInputs = [ pkg-config ];
2017-01-18 00:27:26 +01:00
buildInputs = [
boost openssl systemd
2018-01-29 00:57:05 +01:00
lua luajit
2021-03-05 03:47:13 +01:00
] ++ lib.optional enableProtoBuf protobuf;
2017-01-18 00:27:26 +01:00
configureFlags = [
"--enable-reproducible"
"--enable-systemd"
2017-01-18 00:27:26 +01:00
];
enableParallelBuilding = true;
passthru.tests = {
2021-05-20 23:23:31 +02:00
inherit (nixosTests) pdns-recursor ncdns;
};
2021-03-05 03:47:13 +01:00
meta = with lib; {
2017-01-18 00:27:26 +01:00
description = "A recursive DNS server";
2020-03-09 02:24:14 +01:00
homepage = "https://www.powerdns.com/";
2017-01-18 00:27:26 +01:00
platforms = platforms.linux;
badPlatforms = [
"i686-linux" # a 64-bit time_t is needed
];
2021-06-13 11:03:16 +02:00
license = licenses.gpl2Only;
2017-01-18 00:27:26 +01:00
maintainers = with maintainers; [ rnhmjoj ];
};
}