mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
doc/dart: require to specify flutter version
Context: @FlafyDev: I think flutter apps in nixpkgs should be required to specify a flutter version. like flutter319 and flutter322 instead of using flutter. https://github.com/NixOS/nixpkgs/pull/313711
This commit is contained in:
parent
44f3630b91
commit
09fa054a4d
@ -98,10 +98,12 @@ The function `buildFlutterApplication` builds Flutter applications.
|
||||
|
||||
See the [Dart documentation](#ssec-dart-applications) for more details on required files and arguments.
|
||||
|
||||
`flutter` in Nixpkgs always points to `flutterPackages.stable`, which is the latest packaged version. To avoid unforeseen breakage during upgrade, packages in Nixpkgs should use a specific flutter version, such as `flutter319` and `flutter322`, instead of using `flutter` directly.
|
||||
|
||||
```nix
|
||||
{ flutter, fetchFromGitHub }:
|
||||
|
||||
flutter.buildFlutterApplication {
|
||||
flutter322.buildFlutterApplication {
|
||||
pname = "firmware-updater";
|
||||
version = "0-unstable-2023-04-30";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user