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