Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "watchexec";
|
|
version = "2.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "watchexec";
|
|
repo = "watchexec";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-BJRvz3rFLaOCNhOsEo0rSOgB9BCJ2LMB9XEw8RBWXXs=";
|
|
};
|
|
|
|
cargoHash = "sha256-VtSRC4lyjMo2O9dNbVllcDEx08zQWJMQmQ/2bNMup6U=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework AppKit";
|
|
|
|
checkFlags = [
|
|
"--skip=help"
|
|
"--skip=help_short"
|
|
];
|
|
|
|
postPatch = ''
|
|
rm .cargo/config.toml
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage doc/watchexec.1
|
|
installShellCompletion --cmd watchexec \
|
|
--bash completions/bash \
|
|
--fish completions/fish \
|
|
--zsh completions/zsh
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Executes commands in response to file modifications";
|
|
homepage = "https://watchexec.github.io/";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [
|
|
michalrus
|
|
prince213
|
|
];
|
|
mainProgram = "watchexec";
|
|
};
|
|
})
|