ocamlPackages.ocamlify: fix build with OCaml 4.06
This commit is contained in:
parent
2dc8520225
commit
d0072be8cd
@ -10,9 +10,16 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild ];
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
|
|
||||||
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
configurePhase = ''
|
||||||
buildPhase = "ocaml setup.ml -build";
|
substituteInPlace src/ocamlify.ml --replace 'OCamlifyConfig.version' '"0.0.2"'
|
||||||
installPhase = "ocaml setup.ml -install";
|
'';
|
||||||
|
|
||||||
|
buildPhase = "ocamlbuild src/ocamlify.native";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mv _build/src/ocamlify.native $out/bin/ocamlify
|
||||||
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user