2023-08-15 03:08:57 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-09-29 03:06:55 +00:00
|
|
|
nur = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/nur";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
tailwind-ctp = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-11-08 00:32:31 +00:00
|
|
|
tailwind-ctp-lsp = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-08-15 03:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
flake-utils,
|
|
|
|
nixpkgs,
|
2023-09-29 03:06:55 +00:00
|
|
|
nur,
|
|
|
|
tailwind-ctp,
|
2023-11-08 00:32:31 +00:00
|
|
|
tailwind-ctp-lsp,
|
2023-09-29 03:06:55 +00:00
|
|
|
} @ inputs:
|
2023-08-15 03:08:57 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2023-09-29 03:06:55 +00:00
|
|
|
nur = inputs.nur.packages.${system};
|
|
|
|
tailwind-ctp = inputs.tailwind-ctp.packages.${system}.default;
|
2023-11-08 00:32:31 +00:00
|
|
|
tailwind-ctp-lsp = inputs.tailwind-ctp-lsp.packages.${system}.default;
|
2023-08-15 03:08:57 +00:00
|
|
|
in {
|
2023-09-29 03:06:55 +00:00
|
|
|
packages.default = pkgs.buildGoModule {
|
2023-09-24 06:15:12 +00:00
|
|
|
pname = "jolheiser.com";
|
|
|
|
version = "site";
|
|
|
|
src = ./.;
|
2023-09-29 03:06:55 +00:00
|
|
|
vendorHash = "sha256-Go0L0GFpQj7lQt7z8+iHIyq6bmZkLH/H7iy6vXtYrUg=";
|
|
|
|
nativeBuildInputs = [nur.templ tailwind-ctp];
|
|
|
|
excludedPackages = ".";
|
|
|
|
postBuild = ''
|
|
|
|
go generate
|
|
|
|
mv dist $out
|
2023-09-24 06:15:12 +00:00
|
|
|
'';
|
2023-09-29 03:06:55 +00:00
|
|
|
};
|
2023-08-15 03:08:57 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2023-09-29 03:06:55 +00:00
|
|
|
go
|
|
|
|
nur.templ
|
|
|
|
tailwind-ctp
|
2023-11-08 00:32:31 +00:00
|
|
|
tailwind-ctp-lsp
|
2023-11-07 23:04:03 +00:00
|
|
|
vscode-langservers-extracted
|
2023-08-15 03:08:57 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|