ocamlPackages.inotify: fix tests for OCaml 4.02
This commit is contained in:
parent
60940d7dde
commit
0270bea441
@ -1,6 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
|
{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ocamlbuild
|
||||||
, ocaml_lwt # optional lwt support
|
, ocaml_lwt # optional lwt support
|
||||||
, doCheck ? stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
||||||
, ounit, fileutils # only for tests
|
, ounit, fileutils # only for tests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -15,13 +14,18 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
|
sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]
|
patches = [ (fetchpatch {
|
||||||
++ stdenv.lib.optionals doCheck [ ounit fileutils ];
|
url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
|
||||||
|
sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
|
||||||
|
}) ];
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
|
||||||
|
checkInputs = [ ounit fileutils ];
|
||||||
|
|
||||||
configureFlags = [ "--enable-lwt"
|
configureFlags = [ "--enable-lwt"
|
||||||
(stdenv.lib.optionalString doCheck "--enable-tests") ];
|
(stdenv.lib.optionalString doCheck "--enable-tests") ];
|
||||||
|
|
||||||
inherit doCheck;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user