nix-develop/flake.nix

23 lines
512 B
Nix
Raw Normal View History

2023-10-18 23:53:26 +00:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
eachSystem = f:
nixpkgs.lib.genAttrs nixpkgs.lib.platforms.unix (system:
f {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
});
in {
formatter = eachSystem ({pkgs, ...}: pkgs.alejandra);
devShells = eachSystem ({pkgs, ...}: {
default = pkgs.mkShell {
packages = [pkgs.shellcheck pkgs.actionlint];
};
});
};
}