scummvm: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-12-09 03:56:37 +01:00
parent d096dddffb
commit f7131a9557
2 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,9 @@ stdenv.mkDerivation rec {
postConfigure = ''
sed -i "s/-c -s/-c -s --strip-program=''${STRIP@Q}/" ports.mk
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace config.mk --replace x86_64-apple-darwin-ranlib ${cctools}/bin/ranlib
substituteInPlace config.mk \
--replace x86_64-apple-darwin-ranlib ${cctools}/bin/ranlib \
--replace aarch64-apple-darwin-ranlib ${cctools}/bin/ranlib
'';
meta = with lib; {

View File

@ -34734,6 +34734,7 @@ with pkgs;
};
scummvm = callPackage ../games/scummvm {
stdenv = if (stdenv.isDarwin && stdenv.isAarch64) then llvmPackages_14.stdenv else stdenv;
inherit (darwin) cctools;
inherit (darwin.apple_sdk.frameworks) Cocoa AudioToolbox Carbon CoreMIDI AudioUnit;
};