add dev shell flake
This commit is contained in:
parent
817f574ec2
commit
f7a5d8f823
3 changed files with 53 additions and 0 deletions
25
flake.nix
Normal file
25
flake.nix
Normal 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);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue