2019-10-28 08:00:00 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, CoreServices }:
|
2018-02-18 11:46:24 +00:00
|
|
|
|
2018-08-21 11:00:11 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-05-29 08:36:29 +01:00
|
|
|
pname = "watchexec";
|
2019-10-28 08:00:00 +00:00
|
|
|
version = "1.11.1";
|
2018-02-18 11:46:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-05-29 08:36:29 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2018-08-21 11:00:11 +01:00
|
|
|
rev = version;
|
2019-10-28 08:00:00 +00:00
|
|
|
sha256 = "1iaib7yvxyn3l9kiys9x7wziixj13fmx1z3wgdy6h8c7jv6fpc0j";
|
2018-02-18 11:46:24 +00:00
|
|
|
};
|
|
|
|
|
2019-10-28 08:00:00 +00:00
|
|
|
cargoSha256 = "101p0qj7ydfhqfz402mxy4bs48vq3rzgj513f1kwv0ba4hn1sxkv";
|
2018-02-18 11:46:24 +00:00
|
|
|
|
2019-06-20 17:36:11 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-10-27 17:32:39 +01:00
|
|
|
|
2018-02-18 11:46:24 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Executes commands in response to file modifications";
|
2018-08-21 11:00:11 +01:00
|
|
|
homepage = https://github.com/watchexec/watchexec;
|
2018-02-18 11:46:24 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = [ maintainers.michalrus ];
|
2018-10-27 17:32:39 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-02-18 11:46:24 +00:00
|
|
|
};
|
|
|
|
}
|