1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/ocaml-modules/inotify/default.nix
Vincent Laporte 3beb47ff2a ocamlPackages.inotify: init at 2.3
This package contains bindings for Linux's filesystem monitoring interface, inotify.

Homepage: https://github.com/whitequark/ocaml-inotify
2017-07-02 17:28:53 +02:00

37 lines
993 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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 Linuxs filesystem monitoring interface, inotify";
license = stdenv.lib.licenses.lgpl21;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (src.meta) homepage;
platforms = stdenv.lib.platforms.linux;
};
}