ocamlPackages.erm_xmpp: 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-05 16:54:02 -07:00 committed by Raphael Megzari
parent 590471d177
commit 125c7a4ef5

@ -16,9 +16,21 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib ocamlbuild camlp4 ]; buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ]; propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ];
configurePhase = "ocaml setup.ml -configure --prefix $out"; configurePhase = ''
buildPhase = "ocaml setup.ml -build"; runHook preConfigure
installPhase = "ocaml setup.ml -install"; 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
'';
createFindlibDestdir = true; createFindlibDestdir = true;