Merge pull request #138641 from poscat0x04/unbound-ecs
This commit is contained in:
commit
a1a7badc75
@ -5,9 +5,13 @@
|
|||||||
, nettle
|
, nettle
|
||||||
, expat
|
, expat
|
||||||
, libevent
|
, libevent
|
||||||
|
, libsodium
|
||||||
|
, protobufc
|
||||||
|
, hiredis
|
||||||
, dns-root-data
|
, dns-root-data
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, symlinkJoin
|
||||||
#
|
#
|
||||||
# By default unbound will not be built with systemd support. Unbound is a very
|
# By default unbound will not be built with systemd support. Unbound is a very
|
||||||
# commmon dependency. The transitive dependency closure of systemd also
|
# commmon dependency. The transitive dependency closure of systemd also
|
||||||
@ -21,6 +25,11 @@
|
|||||||
, systemd ? null
|
, systemd ? null
|
||||||
# optionally support DNS-over-HTTPS as a server
|
# optionally support DNS-over-HTTPS as a server
|
||||||
, withDoH ? false
|
, withDoH ? false
|
||||||
|
, withECS ? false
|
||||||
|
, withDNSCrypt ? false
|
||||||
|
, withDNSTAP ? false
|
||||||
|
, withTFO ? false
|
||||||
|
, withRedis ? false
|
||||||
, libnghttp2
|
, libnghttp2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -57,8 +66,24 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-systemd"
|
"--enable-systemd"
|
||||||
] ++ lib.optionals withDoH [
|
] ++ lib.optionals withDoH [
|
||||||
"--with-libnghttp2=${libnghttp2.dev}"
|
"--with-libnghttp2=${libnghttp2.dev}"
|
||||||
|
] ++ lib.optionals withECS [
|
||||||
|
"--enable-subnet"
|
||||||
|
] ++ lib.optionals withDNSCrypt [
|
||||||
|
"--enable-dnscrypt"
|
||||||
|
"--with-libsodium=${symlinkJoin { name = "libsodium-full"; paths = [ libsodium.dev libsodium.out ]; }}"
|
||||||
|
] ++ lib.optionals withDNSTAP [
|
||||||
|
"--enable-dnstap"
|
||||||
|
"--with-protobuf-c=${protobufc}"
|
||||||
|
] ++ lib.optionals withTFO [
|
||||||
|
"--enable-tfo-client"
|
||||||
|
"--enable-tfo-server"
|
||||||
|
] ++ lib.optionals withRedis [
|
||||||
|
"--enable-cachedb"
|
||||||
|
"--with-libhiredis=${hiredis}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
PROTOC_C = if withDNSTAP then "${protobufc}/bin/protoc-c" else null;
|
||||||
|
|
||||||
# Remove references to compile-time dependencies that are included in the configure flags
|
# Remove references to compile-time dependencies that are included in the configure flags
|
||||||
postConfigure = let
|
postConfigure = let
|
||||||
inherit (builtins) storeDir;
|
inherit (builtins) storeDir;
|
||||||
|
@ -10458,6 +10458,11 @@ with pkgs;
|
|||||||
unbound-full = unbound.override {
|
unbound-full = unbound.override {
|
||||||
withSystemd = true;
|
withSystemd = true;
|
||||||
withDoH = true;
|
withDoH = true;
|
||||||
|
withECS = true;
|
||||||
|
withDNSCrypt = true;
|
||||||
|
withDNSTAP = true;
|
||||||
|
withTFO = true;
|
||||||
|
withRedis = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
unicorn = callPackage ../development/libraries/unicorn { };
|
unicorn = callPackage ../development/libraries/unicorn { };
|
||||||
|
Loading…
Reference in New Issue
Block a user