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

30 lines
885 B
Nix
Raw Normal View History

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