mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
watchexec: 2.3.1 -> 2.3.2 (#408366)
This commit is contained in:
commit
48246c9947
1 changed files with 19 additions and 10 deletions
|
@ -4,21 +4,22 @@
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "watchexec";
|
pname = "watchexec";
|
||||||
version = "2.3.1";
|
version = "2.3.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "watchexec";
|
owner = "watchexec";
|
||||||
repo = "watchexec";
|
repo = "watchexec";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-ldxB1/WgOe1uGfKXkMEtGHIlWiKJgnZz6j/7eCOGD8s=";
|
hash = "sha256-BJRvz3rFLaOCNhOsEo0rSOgB9BCJ2LMB9XEw8RBWXXs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-LdjJlf4HPN+kZOQKPNSdbYApGBD4Z6tKV9Y0FFKpAf0=";
|
cargoHash = "sha256-VtSRC4lyjMo2O9dNbVllcDEx08zQWJMQmQ/2bNMup6U=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
@ -35,14 +36,22 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage doc/watchexec.1
|
installManPage doc/watchexec.1
|
||||||
installShellCompletion --zsh --name _watchexec completions/zsh
|
installShellCompletion --cmd watchexec \
|
||||||
|
--bash completions/bash \
|
||||||
|
--fish completions/fish \
|
||||||
|
--zsh completions/zsh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Executes commands in response to file modifications";
|
description = "Executes commands in response to file modifications";
|
||||||
homepage = "https://watchexec.github.io/";
|
homepage = "https://watchexec.github.io/";
|
||||||
license = with licenses; [ asl20 ];
|
license = with lib.licenses; [ asl20 ];
|
||||||
maintainers = [ maintainers.michalrus ];
|
maintainers = with lib.maintainers; [
|
||||||
|
michalrus
|
||||||
|
prince213
|
||||||
|
];
|
||||||
mainProgram = "watchexec";
|
mainProgram = "watchexec";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue