magic-nix-cache-action/flake.nix

31 lines
735 B
Nix
Raw Normal View History

{
description = "Magic Nix Cache";
inputs = {
2023-10-03 06:08:49 +02:00
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.0.tar.gz";
2023-10-03 06:08:49 +02:00
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
};
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
];
};
});
};
}