ocamlPackages.ocp-build: fix for OCaml ≥ 4.08

This commit is contained in:
Vincent Laporte 2020-02-24 18:19:44 +01:00 committed by Vincent Laporte
parent ec97c20fff
commit d02dc3c5fd

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses }:
{ stdenv, fetchpatch, fetchFromGitHub, ocaml, findlib, ncurses }:
let
version = "1.99.19-beta";
in
@ -13,6 +13,11 @@ stdenv.mkDerivation {
sha256 = "162k5l0cxyqanxlml5v8mqapdq5qbqc9m4b8wdjq7mf523b3h2zj";
};
patches = stdenv.lib.optional (stdenv.lib.versionAtLeast ocaml.version "4.08") (fetchpatch {
url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocp-pp/ocp-pp.1.99.19-beta/files/0001-Fix-ocp-pp-for-changes-in-compiler-libs.patch";
sha256 = "0s0s2hh4d7cmwd6i7ixjgb79vij0r1v54m0vwwi26b3fips09qyn";
});
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ ncurses ];
preInstall = "mkdir -p $out/bin";