nixpkgs/pkgs/tools/misc/hwatch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-07-05 18:37:46 +02:00
{ lib, fetchFromGitHub, rustPlatform, testers, hwatch, installShellFiles }:
2022-06-10 16:41:37 +02:00
rustPlatform.buildRustPackage rec {
pname = "hwatch";
2023-04-19 07:18:13 +02:00
version = "0.3.10";
2022-06-10 16:41:37 +02:00
src = fetchFromGitHub {
owner = "blacknon";
repo = pname;
rev = "refs/tags/${version}";
2023-04-19 07:18:13 +02:00
sha256 = "sha256-RvsL6OajXwEY77W3Wj6GMijYwn7XDnKiJyDXbNG01ag=";
2022-06-10 16:41:37 +02:00
};
2023-04-19 07:18:13 +02:00
cargoHash = "sha256-v7MvXnc9Xa+6QAyi2N9/WtqnvXf9M1SlR86kNjfu46Y=";
2022-07-05 18:37:46 +02:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd hwatch \
--bash $src/completion/bash/hwatch-completion.bash \
--fish $src/completion/fish/hwatch.fish \
--zsh $src/completion/zsh/_hwatch \
'';
passthru.tests.version = testers.testVersion {
package = hwatch;
};
2022-06-10 16:41:37 +02:00
meta = with lib; {
2022-07-05 18:37:46 +02:00
homepage = "https://github.com/blacknon/hwatch";
2023-07-30 17:20:02 +02:00
description = "Modern alternative to the watch command";
2022-06-10 16:41:37 +02:00
longDescription = ''
A modern alternative to the watch command, records the differences in
execution results and can check this differences at after.
'';
license = licenses.mit;
maintainers = with maintainers; [ hamburger1984 ];
2023-11-27 02:17:53 +01:00
mainProgram = "hwatch";
2022-06-10 16:41:37 +02:00
};
}