mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
newt, python3Packages.snack: fix dylib name
This commit is contained in:
parent
0e7ffca8e7
commit
cb1a729adc
1 changed files with 4 additions and 0 deletions
|
@ -58,8 +58,12 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
set -xe
|
||||
install_name_tool -id $out/lib/libnewt.so.${version} $out/lib/libnewt.so.${version}
|
||||
install_name_tool -change libnewt.so.${version} $out/lib/libnewt.so.${version} $out/bin/whiptail
|
||||
install_name_tool -change libnewt.so.${version} $out/lib/libnewt.so.${version} \
|
||||
$out/lib/python*/site-packages/_snack* # glob for version & suffix
|
||||
set +x
|
||||
'';
|
||||
|
||||
passthru.tests.pythonModule = (python3.withPackages (ps: [ ps.snack ])).overrideAttrs (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue