diff --git a/pkgs/games/scummvm/default.nix b/pkgs/games/scummvm/default.nix index edecf97f68d6..de9c03b89091 100644 --- a/pkgs/games/scummvm/default.nix +++ b/pkgs/games/scummvm/default.nix @@ -74,8 +74,7 @@ stdenv.mkDerivation rec { '' + lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace config.mk \ - --replace x86_64-apple-darwin-ranlib ${cctools}/bin/ranlib \ - --replace aarch64-apple-darwin-ranlib ${cctools}/bin/ranlib + --replace-fail ${stdenv.hostPlatform.config}-ranlib ${cctools}/bin/ranlib ''; NIX_CFLAGS_COMPILE = [ "-fpermissive" ];