hwatch: 0.3.6 -> 0.3.7

Andreas 4af3088e dee4dc75

+20 -11
+20 -11
pkgs/tools/misc/hwatch/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "hwatch"; 5 - version = "0.3.6"; 6 7 src = fetchFromGitHub { 8 owner = "blacknon"; 9 repo = pname; 10 - # prefix, because just "0.3.6' causes the download to silently fail: 11 - # $ curl -v https://github.com/blacknon/hwatch/archive/0.3.6.tar.gz 12 - # ... 13 - # < HTTP/2 300 14 - # ... 15 - # the given path has multiple possibilities: #<Git::Ref:0x00007fbb2e52bed0>, #<Git::Ref:0x00007fbb2e52ae40> 16 rev = "refs/tags/${version}"; 17 - sha256 = "sha256-uaAgA6DWwYVT9mQh55onW+qxIC2i9GVuimctTJpUgfA="; 18 }; 19 20 - cargoSha256 = "sha256-Xt3Z6ax3Y45KZhTYMBr/Rfx1o+ZAoPYj51SN5hnrXQM="; 21 22 meta = with lib; { 23 - homepage = "https://github.com/blackmon/hwatch"; 24 description= "Modern alternative to the watch command"; 25 longDescription = '' 26 A modern alternative to the watch command, records the differences in
··· 1 + { lib, fetchFromGitHub, rustPlatform, testers, hwatch, installShellFiles }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "hwatch"; 5 + version = "0.3.7"; 6 7 src = fetchFromGitHub { 8 owner = "blacknon"; 9 repo = pname; 10 rev = "refs/tags/${version}"; 11 + sha256 = "sha256-FVqvwqsHkV/yK5okL1p6TiNUGDK2ZnzVNO4UDVkG+zM="; 12 }; 13 14 + cargoSha256 = "sha256-E4qh2cfpVNUa9OyJowSsaHU7pYiNu7IpxwISP0djVRA="; 15 + 16 + nativeBuildInputs = [ installShellFiles ]; 17 + 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 + ''; 24 + 25 + passthru.tests.version = testers.testVersion { 26 + package = hwatch; 27 + command = "hwatch --version"; 28 + version = version; 29 + }; 30 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