depot/third_party/nixpkgs/pkgs/tools/misc/watchexec/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

32 lines
938 B
Nix

{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "watchexec";
version = "1.14.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0m4hipjgg64572lzqy9hz4iq9c4awc93c9rmnpap5iyi855x7idj";
};
cargoSha256 = "0035pqr61mdx699hd4f8hnxknvsdg67l6ys7gxym3fzd9dcmqqff";
nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
postInstall = ''
installManPage doc/watchexec.1
installShellCompletion --zsh --name _watchexec completions/zsh
'';
meta = with stdenv.lib; {
description = "Executes commands in response to file modifications";
homepage = "https://github.com/watchexec/watchexec";
license = with licenses; [ asl20 ];
maintainers = [ maintainers.michalrus ];
platforms = platforms.linux ++ platforms.darwin;
};
}