mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
moarvm: fix build for darwin
This commit is contained in:
parent
f2c9cf39e5
commit
b0f20dad57
1 changed files with 11 additions and 0 deletions
|
@ -10,6 +10,17 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-fzSHpw6Ld74OTi8SsUxJ9qAdA3jglAyGlYyQFsSVrXU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Configure.pl \
|
||||
--replace '`/usr/bin/arch`' '"${stdenv.hostPlatform.darwinArch}"' \
|
||||
--replace '/usr/bin/arch' "$(type -P true)" \
|
||||
--replace '/usr/' '/nope/'
|
||||
substituteInPlace 3rdparty/dyncall/configure \
|
||||
--replace '`sw_vers -productVersion`' '"$MACOSX_DEPLOYMENT_TARGET"'
|
||||
'';
|
||||
|
||||
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
|
||||
doCheck = false; # MoarVM does not come with its own test suite
|
||||
|
||||
|
|
Loading…
Reference in a new issue