summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/findlib
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2022-01-23 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2022-01-23 12:00:00 +0000
commit9a778368f2a61787c2b9d100e364fc0474130175 (patch)
tree8fc795a67b112d5cd011e08c61a3d0d1480d798b /pkgs/development/tools/ocaml/findlib
parent79fb9f824ede89150e8c4df52e4ae02697cb437f (diff)
downloadnixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.tar
nixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.tar.gz
nixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.tar.bz2
nixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.tar.lz
nixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.tar.xz
nixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.tar.zst
nixpkgs-9a778368f2a61787c2b9d100e364fc0474130175.zip
ocamlPackages.findlib: move destdir creation to installPhase
allows to use configurePhase in nix-shell
Diffstat (limited to 'pkgs/development/tools/ocaml/findlib')
-rw-r--r--pkgs/development/tools/ocaml/findlib/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/ocaml/findlib/default.nix b/pkgs/development/tools/ocaml/findlib/default.nix
index d42441db622..e7abf32eae5 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
   '';