2023-07-19 01:53:49 +00:00
|
|
|
{
|
2023-07-21 03:38:26 +00:00
|
|
|
description = "Github Action for caching Nix derivations with attic";
|
2023-07-19 01:53:49 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
2023-07-20 01:08:36 +00:00
|
|
|
outputs = {nixpkgs, ...}: let
|
2023-11-08 14:21:46 +00:00
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
2023-07-19 01:53:49 +00:00
|
|
|
|
2023-11-08 14:21:46 +00:00
|
|
|
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
|
2023-07-20 01:08:36 +00:00
|
|
|
in {
|
2023-11-08 14:21:46 +00:00
|
|
|
devShells = forAllSystems (pkgs: {
|
2023-07-20 01:08:36 +00:00
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
actionlint
|
2023-11-08 14:21:46 +00:00
|
|
|
nodejs_20
|
|
|
|
(nodePackages_latest.pnpm.override {nodejs = nodejs_20;})
|
2023-07-20 01:08:36 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
2023-07-19 01:53:49 +00:00
|
|
|
|
2023-11-08 14:21:46 +00:00
|
|
|
formatter = forAllSystems (p: p.alejandra);
|
2023-07-20 01:08:36 +00:00
|
|
|
};
|
2023-07-19 01:53:49 +00:00
|
|
|
}
|