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