Skip to content

FrankBeu/flutterFlake

Repository files navigation

flutterFlake

a flake for flutter-projects on nixos

ATTENTION

~/.cache/flutter/dart-sdk

hacky workaround

currently dart is copied to the cache on devshell-entry

cp -r ${flutter}/bin/cache/dart-sdk ~/.cache/flutter/dart-sdk

find and implement a clean solution

USAGE

cf. SETUP (./template/README.org)

INFO

version

Tags relate to the flutter-version in major.minor.patch.
The optional flakeVersion is appended: major.minor.patch.flakeVersion. \ A buildNumber (+N) cannot be used because of nix flake restrictions.

nvfetcher

is used for dart and flutter

nix

is based on nixpkgs
cf. nix/README.org

update-workflow

  • specify {flutter,dart}-version in ./nvfetcher.toml
  • update ./_sources
    nvfetcher -f dart -f flutter
        
  • update tag in ./template/flake.nix
    ### …
     flutter-flake = {
       url    = "github:FrankBeu/flutterFlake/<TAG>";
    ### …
        
  • update changelog.org
  • commit
  • tag (name: flutter version)
  • push

TODOS

use app

enable linux builds

currently gtk3-dev-libs cannot be found

do not use ~/.cache/flutter

emulator

ERLEDIGTES

flake-template

update-workflow

About

a flake for flutter projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published