diff options
author | László Vaskó <laszlo.vasko@outlook.com> | 2021-08-06 00:03:58 +0200 |
---|---|---|
committer | László Vaskó <laszlo.vasko@outlook.com> | 2021-08-06 00:24:41 +0200 |
commit | 86621f1fe25f6337cf34edafa4d031075a4c5a80 (patch) | |
tree | 0b38403bf90c8a5e33f897568d38bc0a3b6c035a /pkgs | |
parent | fcff510efb22b6cc8017c410df87fcfb3e8e4d8a (diff) |
pythonPackages.pyunbound: `patchElf` only works on `linux` platform
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/unbound/python.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/networking/unbound/python.nix b/pkgs/tools/networking/unbound/python.nix index a453456daddf9..a141d85b7fce8 100644 --- a/pkgs/tools/networking/unbound/python.nix +++ b/pkgs/tools/networking/unbound/python.nix @@ -57,6 +57,9 @@ in stdenv.mkDerivation rec { $out/bin/unbound-anchor -l | tail --lines=+2 - > $out/etc/${pname}/root.key # We don't need anything else rm -fR $out/bin $out/share $out/include $out/etc/unbound + '' + # patchelf is only available on Linux and no patching is needed on darwin + + lib.optionalString stdenv.isLinux '' patchelf --replace-needed libunbound.so.8 $out/${python.sitePackages}/libunbound.so.8 $out/${python.sitePackages}/_unbound.so ''; |