flutter: Set FLUTTER_ALREADY_LOCKED to prevent writes to the immutable lockfile

This commit is contained in:
hacker1024 2023-10-24 20:37:25 +11:00 committed by Maciej Krüger
parent d8b20d93ad
commit 133d03eb42
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -86,6 +86,7 @@ let
ln -s "$out/bin/cache/dart-sdk/bin/dart" "$out/bin/dart"
makeShellWrapper "$out/bin/dart" "$out/bin/flutter" \
--set-default FLUTTER_ROOT "$out" \
--set FLUTTER_ALREADY_LOCKED true \
--add-flags "--disable-dart-dev \$NIX_FLUTTER_TOOLS_VM_OPTIONS $out/bin/cache/flutter_tools.snapshot"
runHook postInstall