diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-06-28 11:59:45 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-07-05 10:48:18 +0200 |
commit | 0270bea44100c304033eba2df26f92b942dbdb2e (patch) | |
tree | 6d436fc24a04fe6edf7f330a590029de709aa0c5 /pkgs/development/ocaml-modules/inotify | |
parent | 60940d7dde0eed8d8d1bc8614ebfd021e09ddc6b (diff) |
ocamlPackages.inotify: fix tests for OCaml 4.02
Diffstat (limited to 'pkgs/development/ocaml-modules/inotify')
-rw-r--r-- | pkgs/development/ocaml-modules/inotify/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/inotify/default.nix b/pkgs/development/ocaml-modules/inotify/default.nix index e29930775212..e3599a2304ad 100644 --- a/pkgs/development/ocaml-modules/inotify/default.nix +++ b/pkgs/development/ocaml-modules/inotify/default.nix @@ -1,6 +1,5 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild +{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ocamlbuild , ocaml_lwt # optional lwt support -, doCheck ? stdenv.lib.versionAtLeast ocaml.version "4.03" , ounit, fileutils # only for tests }: @@ -15,13 +14,18 @@ stdenv.mkDerivation rec { sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y"; }; - buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ] - ++ stdenv.lib.optionals doCheck [ ounit fileutils ]; + patches = [ (fetchpatch { + url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch"; + sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k"; + }) ]; + + buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]; + checkInputs = [ ounit fileutils ]; configureFlags = [ "--enable-lwt" (stdenv.lib.optionalString doCheck "--enable-tests") ]; - inherit doCheck; + doCheck = true; checkTarget = "test"; createFindlibDestdir = true; |