python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / hwatch / default.nix
blob512603bd3286f1c5b7e4dd9894ed6bba438e5460
1 { lib, fetchFromGitHub, rustPlatform, testers, hwatch, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "hwatch";
5   version = "0.3.7";
7   src = fetchFromGitHub {
8     owner = "blacknon";
9     repo = pname;
10     rev = "refs/tags/${version}";
11     sha256 = "sha256-FVqvwqsHkV/yK5okL1p6TiNUGDK2ZnzVNO4UDVkG+zM=";
12   };
14   cargoSha256 = "sha256-E4qh2cfpVNUa9OyJowSsaHU7pYiNu7IpxwISP0djVRA=";
16   nativeBuildInputs = [ installShellFiles ];
18   postInstall = ''
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 \
23   '';
25   passthru.tests.version = testers.testVersion {
26     package = hwatch;
27     command = "hwatch --version";
28     version = version;
29   };
31   meta = with lib; {
32     homepage = "https://github.com/blacknon/hwatch";
33     description= "Modern alternative to the watch command";
34     longDescription = ''
35       A modern alternative to the watch command, records the differences in
36       execution results and can check this differences at after.
37     '';
38     license = licenses.mit;
39     maintainers = with maintainers; [ hamburger1984 ];
40     platforms = platforms.linux;
41   };