diff options
author | Ryan Burns <rtburns@protonmail.com> | 2021-09-05 17:16:51 -0700 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-09-06 22:41:05 +0900 |
commit | 6310613bb00ff433b53908f859a06aee4b7f07ba (patch) | |
tree | 3fd220420231797a15a7efb08e3883f919567229 /pkgs/development | |
parent | 125c7a4ef53def6ffb1a06852e47a64a796e5577 (diff) | |
download | nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.tar nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.tar.gz nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.tar.bz2 nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.tar.lz nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.tar.xz nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.tar.zst nixlib-6310613bb00ff433b53908f859a06aee4b7f07ba.zip |
ocamlPackages.ocaml_oasis: fix build
Add missing pre/post hooks - preConfigure is now required, as findlib sets a necessary preConfigure hook
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/ocaml/oasis/default.nix | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/development/tools/ocaml/oasis/default.nix b/pkgs/development/tools/ocaml/oasis/default.nix index 6854c7c20ca3..10c7bf63aa41 100644 --- a/pkgs/development/tools/ocaml/oasis/default.nix +++ b/pkgs/development/tools/ocaml/oasis/default.nix @@ -18,9 +18,21 @@ stdenv.mkDerivation { ocaml findlib ocamlbuild ocamlmod ocamlify ]; - configurePhase = "ocaml setup.ml -configure --prefix $out"; - buildPhase = "ocaml setup.ml -build"; - installPhase = "ocaml setup.ml -install"; + configurePhase = '' + runHook preConfigure + ocaml setup.ml -configure --prefix $out + runHook postConfigure + ''; + buildPhase = '' + runHook preBuild + ocaml setup.ml -build + runHook postBuild + ''; + installPhase = '' + runHook preInstall + ocaml setup.ml -install + runHook postInstall + ''; meta = with lib; { homepage = "http://oasis.forge.ocamlcore.org/"; |