ocamlPackages.bolt: fix for ocamlopt

This commit is contained in:
Vincent Laporte 2017-07-08 06:23:59 +00:00
parent cacc9faac7
commit 4523f0251f

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, which, camlp4 }:
{ stdenv, fetchurl, fetchpatch, ocaml, findlib, ocamlbuild, which, camlp4 }:
let inherit (stdenv.lib) getVersion versionAtLeast; in
@ -16,7 +16,13 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib ocamlbuild which camlp4 ];
patchPhase = ''
patches = [ (fetchpatch {
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/bolt/bolt.1.4/files/opam.patch;
sha256 = "08cl39r98w312sw23cskd5wian6zg20isn9ki41hnbcgkazhi7pb";
})
];
postPatch = ''
patch myocamlbuild.ml <<EOF
70,74c70
< let camlp4of =