···3838}
3939```
40404141+### Usage with nix-shell
4242+4343+As `buildDartApplication` provides dependencies instead of `pub get`, Dart needs to be explicitly told where to find them.
4444+4545+Run the following commands in the source directory to configure Dart appropriately.
4646+Do not use `pub` after doing so; it will download the dependencies itself and overwrite these changes.
4747+4848+```bash
4949+cp --no-preserve=all "$pubspecLockFilePath" pubspec.lock
5050+mkdir -p .dart_tool && cp --no-preserve=all "$packageConfig" .dart_tool/package_config.json
5151+```
5252+4153## Flutter applications {#ssec-dart-flutter}
42544355The function `buildFlutterApplication` builds Flutter applications.
···6274 pubspecLock = lib.importJSON ./pubspec.lock.json;
6375 depsListFile = ./deps.json;
6476}
7777+7878+### Usage with nix-shell
7979+8080+See the [Dart documentation](#ssec-dart-applications) nix-shell instructions.
6581```