attic-action/flake.nix

31 lines
684 B
Nix
Raw Normal View History

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