1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/misc/watchexec/default.nix
2019-07-03 22:20:24 +02:00

26 lines
751 B
Nix

{ stdenv, rustPlatform, fetchFromGitHub, CoreServices, darwin }:
rustPlatform.buildRustPackage rec {
pname = "watchexec";
version = "1.10.2";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "10h9g6r5zkm71zpr33imh49187xx1wcv9sw7bf5dllgnxabd0lql";
};
cargoSha256 = "1sqwplvpg0n9j0h9j94m7a6ylgqi4y4wyx489y09z9gm7aqgrsjc";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with stdenv.lib; {
description = "Executes commands in response to file modifications";
homepage = https://github.com/watchexec/watchexec;
license = with licenses; [ asl20 ];
maintainers = [ maintainers.michalrus ];
platforms = platforms.linux ++ platforms.darwin;
};
}