lol

ocamlPackages.inotify: init at 2.3

This package contains bindings for Linux's filesystem monitoring interface, inotify.

Homepage: https://github.com/whitequark/ocaml-inotify

+38
+36
pkgs/development/ocaml-modules/inotify/default.nix
··· 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 + }
+2
pkgs/top-level/ocaml-packages.nix
··· 226 226 227 227 higlo = callPackage ../development/ocaml-modules/higlo { }; 228 228 229 + inotify = callPackage ../development/ocaml-modules/inotify { }; 230 + 229 231 io-page = callPackage ../development/ocaml-modules/io-page { }; 230 232 231 233 ipaddr_p4 = callPackage ../development/ocaml-modules/ipaddr/2.6.1.nix { };