moarvm: fix build failure on x86_64-darwin

This commit is contained in:
tianyaochou 2023-11-19 23:57:21 +01:00 committed by Weijia Wang
parent 10e860ea3b
commit 3a4be8aa4b
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, cctools-port
, perl
, CoreServices
, ApplicationServices
@ -29,6 +30,10 @@ stdenv.mkDerivation rec {
--replace '`sw_vers -productVersion`' '"$MACOSX_DEPLOYMENT_TARGET"'
'';
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

@ -17970,6 +17970,7 @@ with pkgs;
rakudo = callPackage ../development/interpreters/rakudo { };
moarvm = callPackage ../development/interpreters/rakudo/moarvm.nix {
inherit (darwin) cctools-port;
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
};
nqp = callPackage ../development/interpreters/rakudo/nqp.nix { };