site.lyte.dev/flake.nix

23 lines
638 B
Nix
Raw Normal View History

2023-10-06 17:04:53 -05:00
{
2024-06-14 11:06:31 -05:00
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-10-06 17:04:53 -05:00
outputs = {
nixpkgs,
2024-06-14 11:06:31 -05:00
self,
}: let
systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = system: import nixpkgs {inherit system;};
pkgsForAllSystems = f: (forAllSystems (system: f (pkgsFor system)));
buildDeps = pkgs: with pkgs; [hugo tailwindcss];
infraDeps = pkgs: with pkgs; [netlify-cli];
in {
devShells = pkgsForAllSystems (pkgs: {
default = pkgs.mkShell {
buildInputs = (buildDeps pkgs) ++ (infraDeps pkgs);
2023-10-06 17:04:53 -05:00
};
});
2024-06-14 11:06:31 -05:00
};
2023-10-06 17:04:53 -05:00
}