From a5fca2095973192ef688237564e66158e3e7506a Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 19 Nov 2019 04:20:00 -0500 Subject: [PATCH] watchexec: 1.11.1 -> 1.12.0 --- pkgs/tools/misc/watchexec/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/watchexec/default.nix b/pkgs/tools/misc/watchexec/default.nix index dea4478581b6..9729f110bb74 100644 --- a/pkgs/tools/misc/watchexec/default.nix +++ b/pkgs/tools/misc/watchexec/default.nix @@ -1,20 +1,27 @@ -{ stdenv, rustPlatform, fetchFromGitHub, CoreServices }: +{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "watchexec"; - version = "1.11.1"; + version = "1.12.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - sha256 = "1iaib7yvxyn3l9kiys9x7wziixj13fmx1z3wgdy6h8c7jv6fpc0j"; + sha256 = "03s9nsss4895x4lp90y65jajavk8c2nj1jjnmx0vbbwl210ghlv1"; }; - cargoSha256 = "101p0qj7ydfhqfz402mxy4bs48vq3rzgj513f1kwv0ba4hn1sxkv"; + cargoSha256 = "07whi9w51ddh8s7v06c3k6n5q9gfx74rdkhgfysi180y2rgnbanj"; + + nativeBuildInputs = [ installShellFiles ]; buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ]; + postInstall = '' + installManPage doc/watchexec.1 + installShellCompletion --zsh --name _watchexec completions/zsh + ''; + meta = with stdenv.lib; { description = "Executes commands in response to file modifications"; homepage = https://github.com/watchexec/watchexec;