moarvm: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang 2024-01-28 12:20:58 +01:00
parent 781e593a10
commit bdb67f782d
2 changed files with 3 additions and 9 deletions

View File

@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, cctools-port
, perl
, CoreServices
, ApplicationServices
@ -27,13 +26,9 @@ stdenv.mkDerivation rec {
--replace '/usr/bin/arch' "$(type -P true)" \
--replace '/usr/' '/nope/'
substituteInPlace 3rdparty/dyncall/configure \
--replace '`sw_vers -productVersion`' '"$MACOSX_DEPLOYMENT_TARGET"'
--replace '`sw_vers -productVersion`' '"11.0"'
'';
nativeBuildInputs = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
cctools-port
];
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
doCheck = false; # MoarVM does not come with its own test suite

View File

@ -17955,9 +17955,8 @@ with pkgs;
racket-minimal = callPackage ../development/interpreters/racket/minimal.nix { };
rakudo = callPackage ../development/interpreters/rakudo { };
moarvm = callPackage ../development/interpreters/rakudo/moarvm.nix {
inherit (darwin) cctools-port;
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
moarvm = darwin.apple_sdk_11_0.callPackage ../development/interpreters/rakudo/moarvm.nix {
inherit (darwin.apple_sdk_11_0.frameworks) CoreServices ApplicationServices;
};
nqp = callPackage ../development/interpreters/rakudo/nqp.nix { };
zef = callPackage ../development/interpreters/rakudo/zef.nix { };