forked from mirrors/nixpkgs
pypy39: fix build in darwin
This commit is contained in:
parent
4645ec9de6
commit
997a09e612
|
@ -156,7 +156,7 @@ in with passthru; stdenv.mkDerivation rec {
|
|||
ln -s $out/${executable}-c/lib-python/${if isPy3k then "3" else pythonVersion} $out/lib/${libPrefix}
|
||||
|
||||
${lib.optionalString stdenv.isDarwin ''
|
||||
install_name_tool -change @rpath/libpypy${optionalString isPy3k "3"}-c.dylib $out/lib/libpypy${optionalString isPy3k "3"}-c.dylib $out/bin/${executable}
|
||||
install_name_tool -change @rpath/lib${executable}-c.dylib $out/lib/lib${executable}-c.dylib $out/bin/${executable}
|
||||
''}
|
||||
|
||||
# verify cffi modules
|
||||
|
|
|
@ -105,8 +105,8 @@ in with passthru; stdenv.mkDerivation {
|
|||
'' + lib.optionalString (stdenv.isDarwin) ''
|
||||
install_name_tool \
|
||||
-change \
|
||||
@rpath/libpypy${optionalString isPy3k "3"}-c.dylib \
|
||||
$out/lib/libpypy${optionalString isPy3k "3"}-c.dylib \
|
||||
@rpath/lib${executable}-c.dylib \
|
||||
$out/lib/lib${executable}-c.dylib \
|
||||
$out/bin/${executable}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue