@@ -4,41 +4,41 @@
44}:
55
66stdenv.mkDerivation rec {
7− version = "2.3";
8− name = "ocaml${ocaml.version}-inotify-${version}";
9−
10− src = fetchFromGitHub {
11− owner = "whitequark";
12− repo = "ocaml-inotify";
13− rev = "v${version}";
14− sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
15− };
16−
17− patches = [ (fetchpatch {
18− url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
19− sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
20− }) ];
21−
22− buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
23− checkInputs = [ ounit fileutils ];
24−
25− configureFlags = [ "--enable-lwt"
26− (lib.optionalString doCheck "--enable-tests") ];
27−
28− postConfigure = lib.optionalString doCheck ''
29− echo '<lib_test/test_inotify_lwt.*>: pkg_threads' | tee -a _tags
30− '';
31−
32− doCheck = true;
33− checkTarget = "test";
34−
35− createFindlibDestdir = true;
36−
37− meta = {
38− description = "Bindings for Linux’s filesystem monitoring interface, inotify";
39− license = lib.licenses.lgpl21;
40− maintainers = [ lib.maintainers.vbgl ];
41− inherit (src.meta) homepage;
42− platforms = lib.platforms.linux;
43− };
7+ version = "2.3";
8+ name = "ocaml${ocaml.version}-inotify-${version}";
9+
10+ src = fetchFromGitHub {
11+ owner = "whitequark";
12+ repo = "ocaml-inotify";
13+ rev = "v${version}";
14+ sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
15+ };
16+
17+ patches = [ (fetchpatch {
18+ url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
19+ sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
20+ }) ];
21+
22+ buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
23+ checkInputs = [ ounit fileutils ];
24+
25+ configureFlags = [ "--enable-lwt"
26+ (lib.optionalString doCheck "--enable-tests") ];
27+
28+ postConfigure = lib.optionalString doCheck ''
29+ echo '<lib_test/test_inotify_lwt.*>: pkg_threads' | tee -a _tags
30+ '';
31+
32+ doCheck = true;
33+ checkTarget = "test";
34+
35+ createFindlibDestdir = true;
36+
37+ meta = {
38+ description = "Bindings for Linux’s filesystem monitoring interface, inotify";
39+ license = lib.licenses.lgpl21;
40+ maintainers = [ lib.maintainers.vbgl ];
41+ inherit (src.meta) homepage;
42+ platforms = lib.platforms.linux;
43+ };
4444}