Skip to content

Commit

Permalink
ocamlPackages.erm_xmpp: fix build
Browse files Browse the repository at this point in the history
Add missing pre/post hooks - preConfigure is now required,
as findlib sets a necessary preConfigure hook
  • Loading branch information
r-burns authored and happysalada committed Sep 6, 2021
1 parent 590471d commit 125c7a4
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pkgs/development/ocaml-modules/erm_xmpp/default.nix
Expand Up @@ -16,9 +16,21 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ];

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

createFindlibDestdir = true;

Expand Down

0 comments on commit 125c7a4

Please sign in to comment.