mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-11-29 14:45:23 +03:00
5d2215c1e1
* Rebase on top of detsys-ts for abstracting over install.determinate.systems * Support the legacy nix-installer-xxx source prefs * Document source-* opts * Update deps * cut duration so it doesn't take forever * Move the complete step into a finally block * Test a busted run * come on ... * update to the main detsys-ts * Switch to the delegated execution model * throw an error to check behavior * Fixup lint errors * Drop the forced error
32 lines
1007 B
Nix
32 lines
1007 B
Nix
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.5)
|
|
{
|
|
description = "Development environment for the Nix Installer action for GitHub.";
|
|
|
|
inputs = {
|
|
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*.tar.gz";
|
|
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.0.tar.gz";
|
|
};
|
|
|
|
outputs = { self, flake-schemas, nixpkgs }:
|
|
let
|
|
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "aarch64-linux" "x86_64-darwin" ];
|
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
});
|
|
in
|
|
{
|
|
schemas = flake-schemas.schemas;
|
|
|
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
nodejs_latest
|
|
nixpkgs-fmt
|
|
nodePackages_latest.pnpm
|
|
nodePackages_latest.typescript-language-server
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|