Merge pull request #38373 from vbgl/ocamlify
ocamlPackages.ocamlify: fix build with OCaml 4.06
This commit is contained in:
commit
b897bf4f3c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user