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

32 lines
895 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, CoreServices, installShellFiles, libiconv }:
2018-02-18 03:46:24 -08:00
2018-08-21 03:00:11 -07:00
rustPlatform.buildRustPackage rec {
2019-05-29 00:36:29 -07:00
pname = "watchexec";
version = "1.15.0";
2018-02-18 03:46:24 -08:00
src = fetchFromGitHub {
2019-05-29 00:36:29 -07:00
owner = pname;
repo = pname;
2018-08-21 03:00:11 -07:00
rev = version;
sha256 = "1b0ds04q4g8xcgwkziwb5hsi7v73w9y0prvhxz880zzh930652n2";
2018-02-18 03:46:24 -08:00
};
cargoSha256 = "0jpfgyz5l4fdb5cnqmadzjzrvc6dwgray4b0mx80pghpjw8a8qfb";
2019-11-19 01:20:00 -08:00
nativeBuildInputs = [ installShellFiles ];
2018-02-18 03:46:24 -08:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
2018-10-27 09:32:39 -07:00
2019-11-19 01:20:00 -08:00
postInstall = ''
installManPage doc/watchexec.1
installShellCompletion --zsh --name _watchexec completions/zsh
'';
meta = with lib; {
2018-02-18 03:46:24 -08:00
description = "Executes commands in response to file modifications";
homepage = "https://github.com/watchexec/watchexec";
2018-02-18 03:46:24 -08:00
license = with licenses; [ asl20 ];
maintainers = [ maintainers.michalrus ];
};
}