Enable each system in flutter

This commit is contained in:
Anselm Schüler 2022-05-09 18:56:04 +02:00
parent b48afe877e
commit 89f69d117c

View File

@ -46,11 +46,17 @@
iOS, macOS and Windows are not supported currently. Feel free to contribute.
''
else
assert !enable-ios;
assert !enable-macDesktop;
assert !enable-windowsDesktop;
pkgs.mkShell {
packages = with pkgs; [ flutter-fhs ] ++ flutter-deps;
${guard enable-web "CHROME_EXECUTABLE"} = chromeExecutable;
shellHook = optStr enable-android ''
flutter config --enable-android
flutter config --android-sdk ${androidComposition.androidsdk}/libexec/android-sdk
'' + optStr enable-linuxDesktop ''
flutter config --enable-linux-desktop
export CHROME_EXECUTABLE=${chromeExecutable}
'';
};
};