ocamlPackages.ocamlify: fix build with OCaml 4.06

This commit is contained in:
Vincent Laporte 2018-04-02 05:46:54 +00:00
parent 2dc8520225
commit d0072be8cd
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -10,9 +10,16 @@ stdenv.mkDerivation {
buildInputs = [ ocaml findlib ocamlbuild ];
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
installPhase = "ocaml setup.ml -install";
configurePhase = ''
substituteInPlace src/ocamlify.ml --replace 'OCamlifyConfig.version' '"0.0.2"'
'';
buildPhase = "ocamlbuild src/ocamlify.native";
installPhase = ''
mkdir -p $out/bin
mv _build/src/ocamlify.native $out/bin/ocamlify
'';
dontStrip = true;