Skip to content

Commit

Permalink
flutter: Fix reference to the arch binary on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Mar 18, 2024
1 parent 3da824d commit 95520e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -8,7 +8,7 @@
if [ "$pname" == "flutter-tools" ]; then
# Remove impure references to `arch` and use arm64 instead of arm64e.
substituteInPlace lib/src/ios/xcodeproj.dart \
--replace-fail /usr/bin/arch '${darwin.adv_cmds}/bin/arch' \
--replace-fail /usr/bin/arch '${darwin.system_cmds}/bin/arch' \
--replace-fail arm64e arm64
fi
'';
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/flutter/flutter-tools.nix
Expand Up @@ -30,7 +30,7 @@ buildDartApplication.override { inherit dart; } rec {
# Remove impure references to `arch` and use arm64 instead of arm64e.
+ lib.optionalString stdenv.isDarwin ''
substituteInPlace lib/src/ios/xcodeproj.dart \
--replace-fail /usr/bin/arch '${darwin.adv_cmds}/bin/arch' \
--replace-fail /usr/bin/arch '${darwin.system_cmds}/bin/arch' \
--replace-fail arm64e arm64
'';

Expand Down

0 comments on commit 95520e1

Please sign in to comment.