mirror of
https://github.com/DeterminateSystems/determinate-nix-action.git
synced 2026-02-25 07:07:11 +00:00
31 lines
712 B
Nix
31 lines
712 B
Nix
|
|
{
|
||
|
|
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
|
||
|
|
];
|
||
|
|
};
|
||
|
|
});
|
||
|
|
};
|
||
|
|
}
|