diff --git a/pkgs/by-name/wa/watchexec/package.nix b/pkgs/by-name/wa/watchexec/package.nix index d3553f90056f..d1c5c0671423 100644 --- a/pkgs/by-name/wa/watchexec/package.nix +++ b/pkgs/by-name/wa/watchexec/package.nix @@ -46,7 +46,12 @@ rustPlatform.buildRustPackage (finalAttrs: { --zsh completions/zsh ''; - passthru.updateScript = nix-update-script { }; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^v(.+)" + ]; + }; meta = { description = "Executes commands in response to file modifications";