mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
pythonPackages.pyunbound: patchElf
only works on linux
platform
This commit is contained in:
parent
fcff510efb
commit
86621f1fe2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue