commit 6509bdfaa847f92dbf39611d017079babdc06379 Author: Fabien Freling Date: Wed Oct 4 14:20:49 2023 +0200 add flutter env diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d469fbe --- /dev/null +++ b/flake.lock @@ -0,0 +1,64 @@ +{ + "nodes": { + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1680392223, + "narHash": "sha256-n3g7QFr85lDODKt250rkZj2IFS3i4/8HBU2yKHO3tqw=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "dcc36e45d054d7bb554c9cdab69093debd91a0b5", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1682420296, + "narHash": "sha256-z4o4LlrraR31cxUcHb8/TsSBvtLa/+k/I3FxPnNNDWo=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "7cca4067c6967814d853270297cdc3bc25b5c58b", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "release-22.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "dir": "lib", + "lastModified": 1680213900, + "narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e3652e0735fbec227f342712f180f4f21f0594f2", + "type": "github" + }, + "original": { + "dir": "lib", + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..0f6145d --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "FabApp"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/release-22.11"; + flake-parts.url = "github:hercules-ci/flake-parts"; + }; + + outputs = inputs@{ flake-parts, nixpkgs, ... }: + flake-parts.lib.mkFlake { inherit inputs; } { + flake = { + # Put your original flake attributes here. + }; + + systems = [ "x86_64-linux" ]; + + # https://flake.parts/module-arguments.html#persystem-module-parameters + perSystem = { pkgs, system, ... }: { + _module.args.pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + + devShells.default = with pkgs; + let + vscodeCustom = pkgs.vscode-with-extensions.override { + vscodeExtensions = with pkgs.vscode-extensions; + [ dart-code.flutter ]; + }; + in mkShell { buildInputs = [ just flutter vscodeCustom ]; }; + }; + }; +} diff --git a/justfile b/justfile new file mode 100644 index 0000000..209f6f7 --- /dev/null +++ b/justfile @@ -0,0 +1,2 @@ +edit: + code .