2019-04-16 23:18:13 -07:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, darwin }:
|
2018-02-18 03:46:24 -08:00
|
|
|
|
2018-08-21 03:00:11 -07:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2018-02-18 03:46:24 -08:00
|
|
|
name = "watchexec-${version}";
|
2019-02-18 01:53:08 -08:00
|
|
|
version = "1.10.1";
|
2018-02-18 03:46:24 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-08-21 03:00:11 -07:00
|
|
|
owner = "watchexec";
|
2018-02-18 03:46:24 -08:00
|
|
|
repo = "watchexec";
|
2018-08-21 03:00:11 -07:00
|
|
|
rev = version;
|
2019-02-18 01:53:08 -08:00
|
|
|
sha256 = "0azfnqx5v1shsd7jdxzn41awh9dbjykv8h1isrambc86ygr1c1cy";
|
2018-02-18 03:46:24 -08:00
|
|
|
};
|
|
|
|
|
2019-01-26 01:15:40 -08:00
|
|
|
cargoSha256 = "1xlcfr2q2pw47sav9iryjva7w9chv90g18hszq8s0q0w71sccv6j";
|
2018-02-18 03:46:24 -08:00
|
|
|
|
2019-04-16 23:18:13 -07:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
CoreServices
|
|
|
|
# This is needed to avoid an undefined symbol error "_CFURLResourceIsReachable"
|
|
|
|
darwin.cf-private
|
|
|
|
];
|
2018-10-27 09:32:39 -07:00
|
|
|
|
2018-02-18 03:46:24 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Executes commands in response to file modifications";
|
2018-08-21 03:00:11 -07:00
|
|
|
homepage = https://github.com/watchexec/watchexec;
|
2018-02-18 03:46:24 -08:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = [ maintainers.michalrus ];
|
2018-10-27 09:32:39 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-02-18 03:46:24 -08:00
|
|
|
};
|
|
|
|
}
|