ocamlPackages.ocp-build: fix for OCaml ≥ 4.08
This commit is contained in:
parent
ec97c20fff
commit
d02dc3c5fd
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses }:
|
{ stdenv, fetchpatch, fetchFromGitHub, ocaml, findlib, ncurses }:
|
||||||
let
|
let
|
||||||
version = "1.99.19-beta";
|
version = "1.99.19-beta";
|
||||||
in
|
in
|
||||||
@ -13,6 +13,11 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "162k5l0cxyqanxlml5v8mqapdq5qbqc9m4b8wdjq7mf523b3h2zj";
|
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 ];
|
buildInputs = [ ocaml findlib ];
|
||||||
propagatedBuildInputs = [ ncurses ];
|
propagatedBuildInputs = [ ncurses ];
|
||||||
preInstall = "mkdir -p $out/bin";
|
preInstall = "mkdir -p $out/bin";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user