Flutter: Difference between revisions

From NixOS Wiki
imported>IVeryStronglyDislikeMondays
No edit summary
imported>IVeryStronglyDislikeMondays
No edit summary
Line 1: Line 1:
===How do I package my Flutter app with nix?===
===How do I package my Flutter app with nix?===
Your best bet is [https://github.com/flafydev/dart-flutter-nix dart-flutter-nix].
Use [https://github.com/NixOS/nixpkgs/blob/cfe96dbfce8bd62dcd4a8ad62cb79dec140b1a62/pkgs/development/compilers/flutter/flutter.nix#L168 buildFlutterApp from nixpkgs].


You can try nixpkgs's [https://github.com/NixOS/nixpkgs/blob/unstable/pkgs/development/compilers/flutter/flutter.nix#L165 mkFlutterApp] too, but it is at the moment very broken:
The [https://github.com/orgs/NixOS/teams/flutter team working on flutter in nixpkgs] maintains several pieces of infrastructure related to the cause. The documentation is lacking as of now, but there are plans to improve it.
https://github.com/NixOS/nixpkgs/issues/211606

Revision as of 12:21, 28 April 2023

How do I package my Flutter app with nix?

Use buildFlutterApp from nixpkgs.

The team working on flutter in nixpkgs maintains several pieces of infrastructure related to the cause. The documentation is lacking as of now, but there are plans to improve it.