ocamlPackages.ocp-build: fix compilation with OCaml 4.12
This commit is contained in:
parent
9ffb287d75
commit
44339cc0b0
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ncurses, cmdliner, re }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ncurses, cmdliner, re }:
|
||||||
let
|
let
|
||||||
version = "1.99.21";
|
version = "1.99.21";
|
||||||
in
|
in
|
||||||
@ -13,6 +13,14 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1641xzik98c7xnjwxpacijd6d9jzx340fmdn6i372z8h554jjlg9";
|
sha256 = "1641xzik98c7xnjwxpacijd6d9jzx340fmdn6i372z8h554jjlg9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix compilation with OCaml 4.12
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/OCamlPro/ocp-build/commit/104e4656ca6dba9edb03b62539c9f1e10abcaae8.patch";
|
||||||
|
sha256 = "0sbyi4acig9q8x1ky4hckfg5pm2nad6zasi51ravaf1spgl148c2";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib cmdliner re ];
|
buildInputs = [ ocaml findlib cmdliner re ];
|
||||||
propagatedBuildInputs = [ ncurses ];
|
propagatedBuildInputs = [ ncurses ];
|
||||||
preInstall = "mkdir -p $out/bin";
|
preInstall = "mkdir -p $out/bin";
|
||||||
|
Loading…
Reference in New Issue
Block a user