Skip to content

Commit 3beb47f

Browse files
committedJul 2, 2017
ocamlPackages.inotify: init at 2.3
This package contains bindings for Linux's filesystem monitoring interface, inotify. Homepage: https://github.com/whitequark/ocaml-inotify
1 parent dbe61c9 commit 3beb47f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
2+
, ocaml_lwt # optional lwt support
3+
, doCheck ? stdenv.lib.versionAtLeast ocaml.version "4.03"
4+
, ounit, fileutils # only for tests
5+
}:
6+
7+
stdenv.mkDerivation rec {
8+
version = "2.3";
9+
name = "ocaml${ocaml.version}-inotify-${version}";
10+
11+
src = fetchFromGitHub {
12+
owner = "whitequark";
13+
repo = "ocaml-inotify";
14+
rev = "v${version}";
15+
sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
16+
};
17+
18+
buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]
19+
++ stdenv.lib.optionals doCheck [ ounit fileutils ];
20+
21+
configureFlags = [ "--enable-lwt"
22+
(stdenv.lib.optionalString doCheck "--enable-tests") ];
23+
24+
inherit doCheck;
25+
checkTarget = "test";
26+
27+
createFindlibDestdir = true;
28+
29+
meta = {
30+
description = "Bindings for Linux’s filesystem monitoring interface, inotify";
31+
license = stdenv.lib.licenses.lgpl21;
32+
maintainers = [ stdenv.lib.maintainers.vbgl ];
33+
inherit (src.meta) homepage;
34+
platforms = stdenv.lib.platforms.linux;
35+
};
36+
}

‎pkgs/top-level/ocaml-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ let
226226

227227
higlo = callPackage ../development/ocaml-modules/higlo { };
228228

229+
inotify = callPackage ../development/ocaml-modules/inotify { };
230+
229231
io-page = callPackage ../development/ocaml-modules/io-page { };
230232

231233
ipaddr_p4 = callPackage ../development/ocaml-modules/ipaddr/2.6.1.nix { };

0 commit comments

Comments
 (0)
Please sign in to comment.