ocamlbuild: fix build

findlib's setup hook is now a preConfigure setup hook, so make sure to
run it
This commit is contained in:
Guillaume Girol 2021-08-19 12:00:00 +00:00
parent 904625852d
commit a5c133a4b4

View file

@ -19,11 +19,15 @@ stdenv.mkDerivation rec {
hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
configurePhase = ''
runHook preConfigure
make -f configure.make Makefile.config \
"OCAMLBUILD_PREFIX=$out" \
"OCAMLBUILD_BINDIR=$out/bin" \
"OCAMLBUILD_MANDIR=$out/share/man" \
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
runHook postConfigure
'';
meta = with lib; {