ocamlPackages.findlib: move destdir creation to installPhase

allows to use configurePhase in nix-shell
This commit is contained in:
Guillaume Girol 2022-01-23 12:00:00 +00:00
parent 79fb9f824e
commit 9a778368f2

View File

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