ocamlPackages.ocaml_oasis: fix build

Add missing pre/post hooks - preConfigure is now required,
as findlib sets a necessary preConfigure hook
This commit is contained in:
Ryan Burns
2021-09-06 22:41:05 +09:00
committed by Raphael Megzari
parent 125c7a4ef5
commit 6310613bb0
+15 -3
View File
@@ -18,9 +18,21 @@ stdenv.mkDerivation {
ocaml findlib ocamlbuild ocamlmod ocamlify
];
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
installPhase = "ocaml setup.ml -install";
configurePhase = ''
runHook preConfigure
ocaml setup.ml -configure --prefix $out
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
ocaml setup.ml -build
runHook postBuild
'';
installPhase = ''
runHook preInstall
ocaml setup.ml -install
runHook postInstall
'';
meta = with lib; {
homepage = "http://oasis.forge.ocamlcore.org/";