2019-04-17 06:18:13 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, darwin }:
|
2018-02-18 11:46:24 +00:00
|
|
|
|
2018-08-21 10:00:11 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-05-29 07:36:29 +00:00
|
|
|
pname = "watchexec";
|
2019-08-06 09:13:36 +00:00
|
|
|
version = "1.10.3";
|
2018-02-18 11:46:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-05-29 07:36:29 +00:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2018-08-21 10:00:11 +00:00
|
|
|
rev = version;
|
2019-08-06 09:13:36 +00:00
|
|
|
sha256 = "0iaxicghvfy85hrxn151hz8frgfknk3s1z0ngjn7cv5x5zvfxspf";
|
2018-02-18 11:46:24 +00:00
|
|
|
};
|
|
|
|
|
2019-05-29 07:36:29 +00:00
|
|
|
cargoSha256 = "1sqwplvpg0n9j0h9j94m7a6ylgqi4y4wyx489y09z9gm7aqgrsjc";
|
2018-02-18 11:46:24 +00:00
|
|
|
|
2019-06-20 16:36:11 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
2018-10-27 16:32:39 +00:00
|
|
|
|
2018-02-18 11:46:24 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Executes commands in response to file modifications";
|
2018-08-21 10:00:11 +00: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 16:32:39 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-02-18 11:46:24 +00:00
|
|
|
};
|
|
|
|
}
|