2015-01-10 19:29:05 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2015-05-28 16:54:35 +00:00
|
|
|
, autoreconfHook
|
2015-01-10 19:29:05 +00:00
|
|
|
, findutils # for xargs
|
2015-04-07 02:48:44 +00:00
|
|
|
, gettext
|
2015-01-10 19:29:05 +00:00
|
|
|
, libtool
|
|
|
|
, makeWrapper
|
|
|
|
, texinfo
|
|
|
|
}:
|
|
|
|
|
2015-05-28 16:54:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-10 19:29:05 +00:00
|
|
|
name = "fswatch-${version}";
|
2015-08-05 12:44:19 +00:00
|
|
|
version = "1.5.0";
|
2015-01-10 19:29:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emcrisostomo";
|
|
|
|
repo = "fswatch";
|
|
|
|
rev = version;
|
2015-08-05 12:44:19 +00:00
|
|
|
sha256 = "09np75m9df2nk7lc5y9wgq467ca6jsd2p5666d5rkzjvy6s0a51n";
|
2015-01-10 19:29:05 +00:00
|
|
|
};
|
|
|
|
|
2015-05-28 16:54:35 +00:00
|
|
|
buildInputs = [ autoreconfHook gettext libtool makeWrapper texinfo ];
|
2015-01-10 19:29:05 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for prog in fswatch-run fswatch-run-bash; do
|
|
|
|
wrapProgram $out/bin/$prog \
|
|
|
|
--prefix PATH "${findutils}/bin"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2015-01-20 11:52:49 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-01-10 19:29:05 +00:00
|
|
|
description = "A cross-platform file change monitor with multiple backends";
|
|
|
|
homepage = https://github.com/emcrisostomo/fswatch;
|
2015-01-20 11:52:49 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2015-01-10 19:29:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|