ocamlPackages.findlib: move destdir creation to installPhase
allows to use configurePhase in nix-shell
This commit is contained in:
parent
79fb9f824e
commit
9a778368f2
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue