1 { lib, fetchFromGitHub, rustPlatform, testers, hwatch, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
10 rev = "refs/tags/${version}";
11 sha256 = "sha256-H9bZr5/XWS3MuGJOdxHYDlErpW0Tc7QkgkCIifDTlgM=";
14 cargoHash = "sha256-QMLtO0OQ+17H3QwpMGP9Fy4PxjPYOCd3pQ9k1BEPA5c=";
16 nativeBuildInputs = [ installShellFiles ];
19 installShellCompletion --cmd hwatch \
20 --bash $src/completion/bash/hwatch-completion.bash \
21 --fish $src/completion/fish/hwatch.fish \
22 --zsh $src/completion/zsh/_hwatch \
25 passthru.tests.version = testers.testVersion {
30 homepage = "https://github.com/blacknon/hwatch";
31 description = "Modern alternative to the watch command";
33 A modern alternative to the watch command, records the differences in
34 execution results and can check this differences at after.
36 license = licenses.mit;
37 maintainers = with maintainers; [ hamburger1984 ];
38 mainProgram = "hwatch";