magic-nix-cache-action/flake.nix

32 lines
836 B
Nix
Raw Permalink 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; [
jq
2024-03-06 22:10:54 +01:00
shellcheck
2024-04-12 01:21:15 +02:00
nodejs_latest
nixpkgs-fmt
nodePackages_latest.pnpm
nodePackages_latest.typescript-language-server
];
};
});
};
}