unbound: wrap unbound-control-setup with openssl
This commit is contained in:
parent
3ad122f494
commit
ac309027ab
@ -7,6 +7,7 @@
|
|||||||
, libevent
|
, libevent
|
||||||
, dns-root-data
|
, dns-root-data
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, makeWrapper
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -34,6 +35,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
|
outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildInputs = [ openssl nettle expat libevent ]
|
buildInputs = [ openssl nettle expat libevent ]
|
||||||
++ lib.optionals withSystemd [ pkg-config systemd ]
|
++ lib.optionals withSystemd [ pkg-config systemd ]
|
||||||
++ lib.optionals withDoH [ libnghttp2 ];
|
++ lib.optionals withDoH [ libnghttp2 ];
|
||||||
@ -60,6 +63,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
make unbound-event-install
|
make unbound-event-install
|
||||||
|
wrapProgram $out/bin/unbound-control-setup \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ openssl ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = lib.optionalString (stdenv.isLinux && !stdenv.hostPlatform.isMusl) # XXX: revisit
|
preFixup = lib.optionalString (stdenv.isLinux && !stdenv.hostPlatform.isMusl) # XXX: revisit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user