diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-02 15:03:48 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-02 17:28:53 +0200 |
commit | 3beb47ff2a6abe579d01dd24948eeedc0cebbb0a (patch) | |
tree | 3a706233538a0678f383b141179644d0aec5787f /pkgs/development/ocaml-modules/inotify | |
parent | dbe61c96ae778f21cb9111198d68eab3088cd27c (diff) |
ocamlPackages.inotify: init at 2.3
This package contains bindings for Linux's filesystem monitoring interface, inotify.
Homepage: https://github.com/whitequark/ocaml-inotify
Diffstat (limited to 'pkgs/development/ocaml-modules/inotify')
-rw-r--r-- | pkgs/development/ocaml-modules/inotify/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/inotify/default.nix b/pkgs/development/ocaml-modules/inotify/default.nix new file mode 100644 index 000000000000..e29930775212 --- /dev/null +++ b/pkgs/development/ocaml-modules/inotify/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild +, ocaml_lwt # optional lwt support +, doCheck ? stdenv.lib.versionAtLeast ocaml.version "4.03" +, ounit, fileutils # only for tests +}: + +stdenv.mkDerivation rec { + version = "2.3"; + name = "ocaml${ocaml.version}-inotify-${version}"; + + src = fetchFromGitHub { + owner = "whitequark"; + repo = "ocaml-inotify"; + rev = "v${version}"; + sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y"; + }; + + buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ] + ++ stdenv.lib.optionals doCheck [ ounit fileutils ]; + + configureFlags = [ "--enable-lwt" + (stdenv.lib.optionalString doCheck "--enable-tests") ]; + + inherit doCheck; + checkTarget = "test"; + + createFindlibDestdir = true; + + meta = { + description = "Bindings for Linux’s filesystem monitoring interface, inotify"; + license = stdenv.lib.licenses.lgpl21; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + platforms = stdenv.lib.platforms.linux; + }; +} |