{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
templ = {
url = "github:a-h/templ?ref=tags/v0.2.364";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, templ }:
let
allSystems = [
"x86_64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
templ-pkg = inputs.templ.packages.${system}.default;
});
in
{
devShells = forAllSystems ({ pkgs, templ-pkg }: {
default = pkgs.mkShell {
buildInputs = [
pkgs.go
pkgs.gopls
# sqlite web inspector for developing
pkgs.sqlite-web
pkgs.nodePackages.tailwindcss
templ-pkg
];
};
});
};
}