nixpkgs/pkgs/development/tools/misc/fswatch/default.nix

49 lines
966 B
Nix
Raw Normal View History

2015-01-10 20:29:05 +01:00
{ stdenv
, fetchFromGitHub
, autoconf
, automake
2015-01-10 20:29:05 +01:00
, findutils # for xargs
, gettext_0_19
, 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
};
buildInputs = [ autoconf automake gettext_0_19 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
};
}