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 ];
|
||||
|
||||
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