mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #209699 from wegank/pypy27-darwin
pypy27, pypy39: unbreak on aarch64-darwin
This commit is contained in:
commit
7b71b0253f
1 changed files with 5 additions and 1 deletions
|
@ -158,6 +158,11 @@ in with passthru; stdenv.mkDerivation rec {
|
|||
${lib.optionalString stdenv.isDarwin ''
|
||||
install_name_tool -change @rpath/lib${executable}-c.dylib $out/lib/lib${executable}-c.dylib $out/bin/${executable}
|
||||
''}
|
||||
${lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
|
||||
mkdir -p $out/${executable}-c/pypy/bin
|
||||
mv $out/bin/${executable} $out/${executable}-c/pypy/bin/${executable}
|
||||
ln -s $out/${executable}-c/pypy/bin/${executable} $out/bin/${executable}
|
||||
''}
|
||||
|
||||
# verify cffi modules
|
||||
$out/bin/${executable} -c ${if isPy3k then "'import tkinter;import sqlite3;import curses;import lzma'" else "'import Tkinter;import sqlite3;import curses'"}
|
||||
|
@ -174,7 +179,6 @@ in with passthru; stdenv.mkDerivation rec {
|
|||
description = "Fast, compliant alternative implementation of the Python language (${pythonVersion})";
|
||||
license = licenses.mit;
|
||||
platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
||||
maintainers = with maintainers; [ andersk ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue