flutter: Allow adding additional Dart VM options when launching CLI

authored by hacker1024 and committed by Maciej Krüger b63ffdda e13356db

+2 -2
+2 -2
pkgs/development/compilers/flutter/flutter.nix
··· 75 75 # Replace them with simple links and wrappers. 76 76 rm "$out/bin"/{dart,flutter} 77 77 ln -s "$out/bin/cache/dart-sdk/bin/dart" "$out/bin/dart" 78 - makeWrapper "$out/bin/dart" "$out/bin/flutter" \ 78 + makeShellWrapper "$out/bin/dart" "$out/bin/flutter" \ 79 79 --set-default FLUTTER_ROOT "$out" \ 80 - --add-flags "--disable-dart-dev $out/bin/cache/flutter_tools.snapshot" 80 + --add-flags "--disable-dart-dev \$NIX_FLUTTER_TOOLS_VM_OPTIONS $out/bin/cache/flutter_tools.snapshot" 81 81 82 82 runHook postInstall 83 83 '';