diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-01-23 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-01-23 12:00:00 +0000 |
commit | 9a778368f2a61787c2b9d100e364fc0474130175 (patch) | |
tree | 8fc795a67b112d5cd011e08c61a3d0d1480d798b /pkgs/development/tools/ocaml/findlib | |
parent | 79fb9f824ede89150e8c4df52e4ae02697cb437f (diff) | |
download | nixpkgs-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.nix | 4 |
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 ''; |