Install dllcamlzip.so into the stublibs directory

camlzip installs this file in `site-lib/zip` but dune expects to find it
in `site-lib/stublibs`.
This commit is contained in:
Pierre Villemot
2025-05-09 23:27:03 +02:00
committed by Vincent Laporte
parent fa874c4940
commit 69ca7055ae
@@ -63,8 +63,6 @@ stdenv.mkDerivation {
inherit (param) patches;
createFindlibDestdir = true;
postPatch =
param.postPatchInit
+ ''
@@ -78,6 +76,10 @@ stdenv.mkDerivation {
"allopt"
];
preInstall = ''
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
'';
postInstall = ''
ln -s $out/lib/ocaml/${ocaml.version}/site-lib/{,caml}zip
'';