From e9ff270f34e168497af6ca735d80b28a059ec765 Mon Sep 17 00:00:00 2001 From: xenia Date: Sat, 6 Jan 2024 19:34:30 +0100 Subject: [PATCH] Make tychk-watch not use the nix path for current directory as it does not update when a file changes --- python/flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/flake.nix b/python/flake.nix index a40d442..0a11136 100644 --- a/python/flake.nix +++ b/python/flake.nix @@ -14,7 +14,7 @@ ]); cfg = ./mypy-config.ini; in rec { - packages.tychk-watch = pkgs.writeScriptBin "tychk" "echo 'running mypy on change...' ; ${pkgs.watchexec}/bin/watchexec -e py ${python}/bin/mypy --config ${cfg} ${./.}"; + packages.tychk-watch = pkgs.writeScriptBin "tychk" "echo 'running mypy on change...' ; ${pkgs.watchexec}/bin/watchexec -e py ${python}/bin/mypy --config ${cfg} ."; packages.tychk = pkgs.writeScriptBin "tychk" "${python}/bin/mypy ${./.} --config ${cfg}"; devShells.default = pkgs.mkShell { packages = [ python ];