1 { lib, stdenv, rustPlatform, fetchFromGitHub, CoreServices, installShellFiles, libiconv }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "1b0ds04q4g8xcgwkziwb5hsi7v73w9y0prvhxz880zzh930652n2";
14 cargoSha256 = "0jpfgyz5l4fdb5cnqmadzjzrvc6dwgray4b0mx80pghpjw8a8qfb";
16 nativeBuildInputs = [ installShellFiles ];
18 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
21 installManPage doc/watchexec.1
22 installShellCompletion --zsh --name _watchexec completions/zsh
26 description = "Executes commands in response to file modifications";
27 homepage = "https://github.com/watchexec/watchexec";
28 license = with licenses; [ asl20 ];
29 maintainers = [ maintainers.michalrus ];