moarvm: fix build failure on x86_64-darwin

This commit is contained in:
tianyaochou
2023-11-21 01:39:42 +01:00
committed by Weijia Wang
parent 10e860ea3b
commit 3a4be8aa4b
2 changed files with 6 additions and 0 deletions
@@ -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
+1
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 { };