Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add usage example for devenv.sh
  • Loading branch information
maximoffua authored Dec 4, 2023
1 parent d9ff87b commit d96a901
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,43 @@

This repository is made for fixing issues with flutter in nixpkgs, specifically [#260278](https://github.com/NixOS/nixpkgs/issues/260278).

# Getting started

This flake provides the following packages:

- packages.${system}.flutter
- packages.${system}.dart
- packages.${system}.flutter-unwrapped

Will add overlays later.

## With [devenv](https://devenv.sh)

```yaml
# devenv.yaml
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
flutter-nix:
url: github:maximoffua/flutter.nix
```
```nix
# devenv.nix
{
pkgs,
inputs,
...
}: let
system = pkgs.stdenv.system;
flutter = inputs.flutter-nix.packages.${system}.flutter;
in {
languages.dart.enable = true;
languages.dart.package = flutter;

enterShell = ''
flutter --version
'';
}
```

1 comment on commit d96a901

@maximoffua
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #1

Please sign in to comment.