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

30 lines
863 B
Nix
Raw Normal View History

{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, darwin }:
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.10.2";
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;
2019-05-29 00:36:29 -07:00
sha256 = "10h9g6r5zkm71zpr33imh49187xx1wcv9sw7bf5dllgnxabd0lql";
2018-02-18 03:46:24 -08:00
};
2019-05-29 00:36:29 -07:00
cargoSha256 = "1sqwplvpg0n9j0h9j94m7a6ylgqi4y4wyx489y09z9gm7aqgrsjc";
2018-02-18 03:46:24 -08: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
};
}