about summary refs log tree commit diff
path: root/pkgs/development/compilers/flutter/artifacts/overrides/darwin.nix
blob: b03b14f68c8b6418541fa04453dbb990db733766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ darwin }:
{
  buildInputs ? [ ],
  ...
}:
{
  postPatch = ''
    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 arm64e arm64
    fi
  '';
}