This commit is contained in:
Henry Hiles 2026-08-08 17:14:54 -04:00
commit 66a350eb53
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -1,13 +1,13 @@
#!/bin/sh
# Workaround for NixOS/nixpkgs#405066: frameworks copied from the Nix store
# stay read-only, so lipo can't write its temporary output file when Flutter
# thins them during the build. Make the framework writable before delegating
# to the real lipo.
for arg in "$@"; do
case "$arg" in
*/*.framework/*)
*.framework/*)
fw_dir="${arg%.framework/*}.framework"
chmod -R +w "$fw_dir" 2>/dev/null
chmod -R u+w "$fw_dir" 2>/dev/null
;;
*.lipo)
chmod u+w "$(dirname "$arg")" 2>/dev/null
;;
esac
done