From 69ca7055ae35b751e62099e51200fcb280b8f448 Mon Sep 17 00:00:00 2001 From: Pierre Villemot Date: Fri, 9 May 2025 00:26:08 +0200 Subject: [PATCH] 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`. --- pkgs/development/ocaml-modules/camlzip/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/camlzip/default.nix b/pkgs/development/ocaml-modules/camlzip/default.nix index e36453d216fe..5c7158673043 100644 --- a/pkgs/development/ocaml-modules/camlzip/default.nix +++ b/pkgs/development/ocaml-modules/camlzip/default.nix @@ -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 '';