Add shell.nix

This commit is contained in:
ekzyis 2024-07-21 20:39:22 -05:00
parent 139bb2e5b1
commit a2b717b336
1 changed files with 18 additions and 0 deletions

18
shell.nix Normal file
View File

@ -0,0 +1,18 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShell {
packages = with pkgs; [
go
tailwindcss
gnumake
inotify-tools
figlet
];
shellHook = ''
# install templ if not already installed
command -v templ > /dev/null || go install github.com/a-h/templ/cmd/templ@latest
'';
}