forked from mirrors/nixpkgs
22b2b6ad01
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pdns-recursor/versions. These checks were done: - built on NixOS - ran `/nix/store/x1l2ipjyj57g4h4zb8pnggs4if00zv4x-pdns-recursor-4.1.2/bin/rec_control --help` got 0 exit code - ran `/nix/store/x1l2ipjyj57g4h4zb8pnggs4if00zv4x-pdns-recursor-4.1.2/bin/pdns_recursor --help` got 0 exit code - ran `/nix/store/x1l2ipjyj57g4h4zb8pnggs4if00zv4x-pdns-recursor-4.1.2/bin/pdns_recursor --version` and found version 4.1.2 - ran `/nix/store/x1l2ipjyj57g4h4zb8pnggs4if00zv4x-pdns-recursor-4.1.2/bin/pdns_recursor --help` and found version 4.1.2 - found 4.1.2 with grep in /nix/store/x1l2ipjyj57g4h4zb8pnggs4if00zv4x-pdns-recursor-4.1.2 - directory tree listing: https://gist.github.com/78903ab083c7a33959374a77efcf439b
39 lines
897 B
Nix
39 lines
897 B
Nix
{ stdenv, fetchurl, pkgconfig, boost
|
|
, openssl, systemd, lua, luajit, protobuf
|
|
, enableProtoBuf ? false
|
|
}:
|
|
assert enableProtoBuf -> protobuf != null;
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pdns-recursor-${version}";
|
|
version = "4.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.powerdns.com/releases/pdns-recursor-${version}.tar.bz2";
|
|
sha256 = "0xpd8k7ahwrwabz05zbjmg54dmd4hm5hkbfn8m1ws6y4f7qm4inv";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
boost openssl systemd
|
|
lua luajit
|
|
] ++ optional enableProtoBuf protobuf;
|
|
|
|
configureFlags = [
|
|
"--enable-reproducible"
|
|
"--with-systemd"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "A recursive DNS server";
|
|
homepage = https://www.powerdns.com/;
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
};
|
|
}
|