Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add Nix Flake support #775

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikeborodin
Copy link

@mikeborodin mikeborodin commented Sep 4, 2024

This PR adds nix "flake" configuration so that Nix users can easily use fvm
We use devbox which is an abstraction on top of nix to declaratively manage project dependencies.
With this adding fvm to the project dev environment is as easy as running devbox add github:leoafarias/fvm
This will result in the "flake" added to your devbox.json (where all the dependencies are declared):

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
  "packages": [
    "github:leoafarias/fvm",
  ],
  "shell": {
    "init_hook": [
       "fvm flutter doctor"
    ]
  }
}

The benefit is this file is checked into the source control and everyone on the team will have fvm installed once they are in this dev environment :)

Testing steps for this pr

# install devbox
devbox init
devbox add github:mikeborodin/fvm/1eccdd2b3235b5455c613241f9ae78c7f1de2ae6
devbox shell
fvm list

This is my first PR here so let me know if I missed something 😊

thanks

Copy link

vercel bot commented Sep 4, 2024

@mikeborodin is attempting to deploy a commit to the FlutterTools Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant