flake-checker-action/flake.nix
2023-06-05 13:10:41 +02:00

24 lines
638 B
Nix

# This flake.nix is only here to provide a flake.lock to check in CI
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forAllSystems ({ pkgs }: {
default =
pkgs.mkShell {
packages = (with pkgs; [
nixpkgs-fmt
]);
};
});
};
}