A vibe coded tangled fork which supports pijul.

flake.nix: add watch-blog

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>

authored by

Anirudh Oppiliappan and committed by tangled.org 3cad5880 29eb5997

+22
+12
.air/blog.toml
··· 1 + root = "." 2 + tmp_dir = "out" 3 + 4 + [build] 5 + cmd = "go build -o out/blog.out cmd/blog/main.go" 6 + bin = "out/blog.out" 7 + args_bin = ["serve"] 8 + 9 + include_ext = ["go", "html", "md"] 10 + include_dir = ["cmd/blog", "blog"] 11 + exclude_dir = ["nix", "tmp", "out"] 12 + stop_on_error = true
+1
.gitignore
··· 21 21 # Created if following hacking.md 22 22 genjwks.out 23 23 /nix/vm-data 24 + blog/build/
+9
flake.nix
··· 254 254 type = "app"; 255 255 program = ''${air-watcher "spindle" ""}/bin/run''; 256 256 }; 257 + watch-blog = { 258 + type = "app"; 259 + program = toString (pkgs.writeShellScript "watch-blog" '' 260 + echo "copying static files to appview/pages/static..." 261 + mkdir -p appview/pages/static 262 + ${pkgs.coreutils}/bin/cp -fr --no-preserve=ownership,mode ${packages'.appview-static-files}/* appview/pages/static 263 + ${air-watcher "blog" "serve"}/bin/run 264 + ''); 265 + }; 257 266 watch-tailwind = { 258 267 type = "app"; 259 268 program = ''${tailwind-watcher}/bin/run'';