1 { lib, fetchFromGitHub, rustPlatform, testers, hwatch, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
10 rev = "refs/tags/${version}";
11 sha256 = "sha256-FVqvwqsHkV/yK5okL1p6TiNUGDK2ZnzVNO4UDVkG+zM=";
14 cargoSha256 = "sha256-E4qh2cfpVNUa9OyJowSsaHU7pYiNu7IpxwISP0djVRA=";
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 {
27 command = "hwatch --version";
32 homepage = "https://github.com/blacknon/hwatch";
33 description= "Modern alternative to the watch command";
35 A modern alternative to the watch command, records the differences in
36 execution results and can check this differences at after.
38 license = licenses.mit;
39 maintainers = with maintainers; [ hamburger1984 ];
40 platforms = platforms.linux;