Merge pull request #38373 from vbgl/ocamlify

ocamlPackages.ocamlify: fix build with OCaml 4.06
This commit is contained in:
Jörg Thalheim 2018-04-08 14:27:14 +01:00 committed by GitHub
commit b897bf4f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;