mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-11 03:02:37 +00:00
ocamlPackages.ocaml_oasis: fix build
Add missing pre/post hooks - preConfigure is now required, as findlib sets a necessary preConfigure hook
This commit is contained in:
parent
125c7a4ef5
commit
6310613bb0
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user