diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-04-24 08:59:55 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-04-24 10:26:40 +0200 |
commit | ac309027ab81a8a9a9e9c7e7c924340dac7ca86e (patch) | |
tree | 886f9bb65964fce2a22441e87485c95de7d483d2 /pkgs/tools/networking/unbound | |
parent | 3ad122f494ce2fa3b704da3483dcd2c4a7ae7d49 (diff) |
unbound: wrap unbound-control-setup with openssl
Diffstat (limited to 'pkgs/tools/networking/unbound')
-rw-r--r-- | pkgs/tools/networking/unbound/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/networking/unbound/default.nix b/pkgs/tools/networking/unbound/default.nix index 3c28133a2dbf5..a0c774fb7341a 100644 --- a/pkgs/tools/networking/unbound/default.nix +++ b/pkgs/tools/networking/unbound/default.nix @@ -7,6 +7,7 @@ , libevent , dns-root-data , pkg-config +, makeWrapper # # By default unbound will not be built with systemd support. Unbound is a very # 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 + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ openssl nettle expat libevent ] ++ lib.optionals withSystemd [ pkg-config systemd ] ++ lib.optionals withDoH [ libnghttp2 ]; @@ -60,6 +63,8 @@ stdenv.mkDerivation rec { postInstall = '' 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 |