all repos — website @ 7203854714190d4adee41d56fa7872eadf77d181

My website

ensure watchexec is available
Alan Pearce alan@alanpearce.eu
Thu, 18 Apr 2024 21:56:41 +0200
commit

7203854714190d4adee41d56fa7872eadf77d181

parent

eb51778065f61a2fe5e15c3f0cdba0e3b306731a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M flake.nixflake.nix
@@ -33,10 +33,10 @@ gomod2nix.packages.${system}.default                 gci
                 flyctl
                 (writeShellScriptBin "watch-builder" ''
-                  watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -i server.go -i public -r go run ./cmd/build'
+                  ${pkgs.watchexec}/bin/watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -i server.go -i public -r go run ./cmd/build'
                 '')
                 (writeShellScriptBin "watch-server" ''
-                  watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -r go run ./server.go'
+                  ${pkgs.watchexec}/bin/watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -r go run ./server.go'
                 '')
               ] ++ nativeBuildInputs;
             };