1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 lwt, # optional lwt support
6 ounit2,
7 fileutils, # only for tests
8}:
9
10buildDunePackage rec {
11 version = "2.6";
12 pname = "inotify";
13
14 src = fetchFromGitHub {
15 owner = "whitequark";
16 repo = "ocaml-inotify";
17 rev = "v${version}";
18 hash = "sha256-Vg9uVIx6/OMS1WoJIHwZbSt5ZyFy+Xgw5167FJWGslg=";
19 };
20
21 buildInputs = [ lwt ];
22
23 checkInputs = [
24 ounit2
25 fileutils
26 ];
27
28 doCheck = true;
29
30 meta = {
31 description = "Bindings for Linux’s filesystem monitoring interface, inotify";
32 license = lib.licenses.lgpl21;
33 maintainers = [ lib.maintainers.vbgl ];
34 inherit (src.meta) homepage;
35 platforms = lib.platforms.linux;
36 };
37}