shells: add some basic devshells
This commit is contained in:
parent
076783e488
commit
a36db6bf00
1 changed files with 32 additions and 0 deletions
32
modules/shells/default.nix
Normal file
32
modules/shells/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
supportedSystems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
|
||||||
|
forAllSystems = f: inputs.nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.devShells = forAllSystems (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import inputs.nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [ atool ];
|
||||||
|
};
|
||||||
|
|
||||||
|
zig = pkgs.mkShell {
|
||||||
|
packages = [
|
||||||
|
inputs.zig-overlay.packages.${system}.master
|
||||||
|
inputs.zls.packages.${system}.zls
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue