about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--flake.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 5f70ae0..e5a2ebb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -32,6 +32,12 @@
                 gomod2nix.packages.${system}.default
                 gci
                 flyctl
+                (writeShellScriptBin "watch-builder" ''
+                  watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -w templates -w cmd/build -r go run ./cmd/build'
+                '')
+                (writeShellScriptBin "watch-server" ''
+                  watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -r go run ./server.go'
+                '')
               ] ++ nativeBuildInputs;
             };
           };