3
0
Fork 0
forked from mirrors/nixpkgs

pypy39: fix build in darwin

This commit is contained in:
Thiago Kenji Okada 2023-01-06 15:59:26 +00:00
parent 4645ec9de6
commit 997a09e612
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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}
'';