flutter: Set FLUTTER_ALREADY_LOCKED to prevent writes to the immutable lockfile
This commit is contained in:
parent
d8b20d93ad
commit
133d03eb42
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue