ocamlPackages.findlib: move destdir creation to installPhase

allows to use configurePhase in nix-shell
main
Guillaume Girol 2 years ago
parent 79fb9f824e
commit 9a778368f2
  1. 4
      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
'';

Loading…
Cancel
Save