From 9a778368f2a61787c2b9d100e364fc0474130175 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 23 Jan 2022 12:00:00 +0000 Subject: [PATCH] ocamlPackages.findlib: move destdir creation to installPhase allows to use configurePhase in nix-shell --- pkgs/development/tools/ocaml/findlib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/ocaml/findlib/default.nix b/pkgs/development/tools/ocaml/findlib/default.nix index d42441db6225..e7abf32eae5f 100644 --- a/pkgs/development/tools/ocaml/findlib/default.nix +++ b/pkgs/development/tools/ocaml/findlib/default.nix @@ -47,8 +47,8 @@ stdenv.mkDerivation rec { # run for every buildInput addEnvHooks "$targetOffset" addOCamlPath - # run before configurePhase, even without buildInputs, and not in nix-shell - preConfigureHooks+=(createOcamlDestDir) + # run before installPhase, even without buildInputs, and not in nix-shell + preInstallHooks+=(createOcamlDestDir) # run even in nix-shell, and even without buildInputs addEnvHooks "$hostOffset" exportOcamlDestDir '';