git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.inotify: init at 2.3

This package contains bindings for Linux's filesystem monitoring interface, inotify. Homepage: https://github.com/whitequark/ocaml-inotify

commit3beb47ff2a6abe579d01dd24948eeedc0cebbb0a authorVincent Laporte <Vincent.Laporte@gmail.com> dateSun 2 Jul 2017, 15:03 (9 years ago) parentdbe61c9
2 files changed+38
pkgs/development/ocaml-modules/inotify/default.nix+36 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/inotify/default.nixnew file+36
@@ -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
@@ -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 { };