git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.inotify: fix tests for OCaml 4.02
commit0270bea44100c304033eba2df26f92b942dbdb2e authorVincent Laporte <Vincent.Laporte@gmail.com> dateSun 28 Jun 2020, 11:59 (6 years ago) parent60940d7
1 file changed+9−5
pkgs/development/ocaml-modules/inotify/default.nix+9−5
pkgs/development/ocaml-modules/inotify/default.nix+9−5
@@ -1,6 +1,5 @@
1−{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
1+{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ocamlbuild
22, ocaml_lwt # optional lwt support
3−, doCheck ? stdenv.lib.versionAtLeast ocaml.version "4.03"
43, ounit, fileutils # only for tests
54}:
65
@@ -15,13 +14,18 @@ stdenv.mkDerivation rec {
1514 sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
1615 };
1716
18− buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]
19− ++ stdenv.lib.optionals doCheck [ ounit fileutils ];
17+ patches = [ (fetchpatch {
18+ url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
19+ sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
20+ }) ];
21+
22+ buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
23+ checkInputs = [ ounit fileutils ];
2024
2125 configureFlags = [ "--enable-lwt"
2226 (stdenv.lib.optionalString doCheck "--enable-tests") ];
2327
24− inherit doCheck;
28+ doCheck = true;
2529 checkTarget = "test";
2630
2731 createFindlibDestdir = true;