mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
de22e16c47
* Share /bin with nix for post-build-hooks * test the magic nix cache * wtf * permissions * Share /home and the network namespace too * test the devshell * Don't force-set kvm to 0 ... d'oh! * dev shell support for aarch64-linux * ? * More testing / debug * Make it run anyway * Bind /lib too so /bin/sh works ... sigh * Disable gha-cache for tesing * Kill the magic nix cache before reinstalling * Don't set the extra environment variables extraniously * Enable gha cache again
30 lines
970 B
Nix
30 lines
970 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.typescript-language-server
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|