mirror of
https://github.com/DeterminateSystems/flake-checker-action.git
synced 2025-05-16 00:08:47 +02:00
24 lines
638 B
Nix
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
|
|
]);
|
|
};
|
|
});
|
|
};
|
|
}
|