determinate-nix-action/flake.nix

31 lines
712 B
Nix
Raw Permalink Normal View History

2025-05-14 17:20:48 -04:00
{
description = "Development environment for determinate-nix-action";
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = nixpkgs.legacyPackages.${system};
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
gh
jq
python3
python3.pkgs.ruff
shellcheck
typos
yq
];
};
});
};
}