mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
scummvm: fix build on aarch64-darwin
This commit is contained in:
parent
d096dddffb
commit
f7131a9557
@ -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; {
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user