1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 # for xargs
7 gettext,
8 libtool,
9 makeWrapper,
10 texinfo,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "fswatch";
15 version = "1.18.3";
16
17 src = fetchFromGitHub {
18 owner = "emcrisostomo";
19 repo = "fswatch";
20 rev = version;
21 sha256 = "sha256-C/NHDhhRTQppu8xRWe9fy1+KIutyoRbkkabUtGlJ1fE=";
22 };
23
24 nativeBuildInputs = [
25 autoreconfHook
26 makeWrapper
27 ];
28 buildInputs = [
29 gettext
30 libtool
31 texinfo
32 ];
33
34 enableParallelBuilding = true;
35
36 meta = with lib; {
37 description = "Cross-platform file change monitor with multiple backends";
38 mainProgram = "fswatch";
39 homepage = "https://github.com/emcrisostomo/fswatch";
40 license = licenses.gpl3Plus;
41 platforms = platforms.all;
42 maintainers = with maintainers; [ pSub ];
43 };
44}