add dev shell flake

This commit is contained in:
Vinzenz Schroeter 2024-11-05 22:24:03 +01:00
parent 817f574ec2
commit f7a5d8f823
3 changed files with 53 additions and 0 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "Dev shell flake for servicepoint-tanks";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05";
};
outputs =
{ self, nixpkgs }:
let
lib = nixpkgs.lib;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
in
{
devShells = forAllSystems (system: {
default = import ./shell.nix {
inherit nixpkgs;
pkgs = nixpkgs.legacyPackages."${system}";
lib = nixpkgs.lib;
};
});
formatter = forAllSystems (system: nixpkgs.legacyPackages."${system}".nixfmt-rfc-style);
};
}