fabapp/flake.nix

34 lines
978 B
Nix
Raw Normal View History

2023-04-25 14:18:05 +02:00
{
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;
2023-06-02 13:22:56 +02:00
[ dart-code.flutter bbenoist.nix brettm12345.nixfmt-vscode ];
2023-04-25 14:18:05 +02:00
};
in mkShell { buildInputs = [ just flutter vscodeCustom ]; };
};
};
}