shells: add some basic devshells

This commit is contained in:
Christoph Hollizeck 2025-11-22 21:03:52 +01:00
parent 076783e488
commit a36db6bf00
Signed by: Daholli
GPG key ID: 249300664F2AF2C7

View 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
];
};
}
);
}