mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
34 lines
734 B
Nix
34 lines
734 B
Nix
|
{
|
||
|
description = "Magic Nix Cache";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
||
|
flake-compat = {
|
||
|
url = "github:edolstra/flake-compat";
|
||
|
flake = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, ... }:
|
||
|
let
|
||
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||
|
pkgs = import nixpkgs { inherit system; };
|
||
|
});
|
||
|
in
|
||
|
{
|
||
|
devShells = forAllSystems ({ pkgs }: {
|
||
|
default = pkgs.mkShell {
|
||
|
packages = with pkgs; [
|
||
|
bun
|
||
|
nodejs
|
||
|
jq
|
||
|
act
|
||
|
just
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
}
|