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

24 lines
658 B
Nix
Raw Normal View History

{ stdenv, rustPlatform, fetchFromGitHub }:
2018-02-18 11:46:24 +00:00
2018-08-21 11:00:11 +01:00
rustPlatform.buildRustPackage rec {
2018-02-18 11:46:24 +00:00
name = "watchexec-${version}";
2018-08-21 11:00:11 +01:00
version = "1.9.0";
2018-02-18 11:46:24 +00:00
src = fetchFromGitHub {
2018-08-21 11:00:11 +01:00
owner = "watchexec";
2018-02-18 11:46:24 +00:00
repo = "watchexec";
2018-08-21 11:00:11 +01:00
rev = version;
sha256 = "0zp5s2dy5zbar0virvy1izjpvvgwbz7rvjmcy6bph6rb5c4bhm70";
2018-02-18 11:46:24 +00:00
};
2018-08-21 11:00:11 +01:00
cargoSha256 = "1li84kq9myaw0zwx69y72f3lx01s7i9p8yays4rwvl1ymr614y1l";
2018-02-18 11:46:24 +00:00
meta = with stdenv.lib; {
description = "Executes commands in response to file modifications";
2018-08-21 11:00:11 +01:00
homepage = https://github.com/watchexec/watchexec;
2018-02-18 11:46:24 +00:00
license = with licenses; [ asl20 ];
maintainers = [ maintainers.michalrus ];
2018-08-21 11:00:11 +01:00
platforms = platforms.linux;
2018-02-18 11:46:24 +00:00
};
}