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].
Your best bet is [https://github.com/flafydev/dart-flutter-nix dart-flutter-nix].
You can try nixpkgs's [mkFlutterApp https://github.com/NixOS/nixpkgs/blob/unstable/pkgs/development/compilers/flutter/flutter.nix#L165] too, but it is at the moment very broken:
 
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:
https://github.com/NixOS/nixpkgs/issues/211606
https://github.com/NixOS/nixpkgs/issues/211606

Revision as of 15:02, 29 March 2023

How do I package my Flutter app with nix?

Your best bet is dart-flutter-nix.

You can try nixpkgs's mkFlutterApp too, but it is at the moment very broken: https://github.com/NixOS/nixpkgs/issues/211606