flake.nix (view raw)
1{
2 description = "site";
3
4 inputs = {
5 vite.url = "github:icyphox/go-vite";
6 flake-utils.url = "github:numtide/flake-utils";
7 };
8
9 outputs = { self, nixpkgs, flake-utils, vite }:
10 flake-utils.lib.eachDefaultSystem
11 (system:
12 let
13 pkgs = nixpkgs.legacyPackages.${system};
14 in
15 {
16 devShell = pkgs.mkShell {
17 buildInputs = [
18 vite.packages.${system}.default
19 pkgs.go
20 pkgs.gotools
21 pkgs.gnumake
22 pkgs.entr
23 ];
24 };
25 }
26 );
27
28}