fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / hw / hwatch / package.nix
bloba001ae28e4bdc5a63a467a0fb4c042994754ecc5
1 { lib, fetchFromGitHub, rustPlatform, testers, hwatch, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "hwatch";
5   version = "0.3.16";
7   src = fetchFromGitHub {
8     owner = "blacknon";
9     repo = pname;
10     rev = "refs/tags/${version}";
11     sha256 = "sha256-H9bZr5/XWS3MuGJOdxHYDlErpW0Tc7QkgkCIifDTlgM=";
12   };
14   cargoHash = "sha256-QMLtO0OQ+17H3QwpMGP9Fy4PxjPYOCd3pQ9k1BEPA5c=";
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   };
29   meta = with lib; {
30     homepage = "https://github.com/blacknon/hwatch";
31     description = "Modern alternative to the watch command";
32     longDescription = ''
33       A modern alternative to the watch command, records the differences in
34       execution results and can check this differences at after.
35     '';
36     license = licenses.mit;
37     maintainers = with maintainers; [ hamburger1984 ];
38     mainProgram = "hwatch";
39   };