ocamlPackages.buildOasis: fix handling of installation prefix

This commit is contained in:
Vincent Laporte 2020-06-25 07:49:44 +02:00 committed by Vincent Laporte
parent f4a34b2c08
commit 885fb1406d

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation (args // {
buildPhase = ''
runHook preBuild
oasis setup
ocaml setup.ml -configure
ocaml setup.ml -configure --prefix $OCAMLFIND_DESTDIR --exec-prefix $out
ocaml setup.ml -build
runHook postBuild
'';
@ -37,9 +37,7 @@ stdenv.mkDerivation (args // {
installPhase = ''
runHook preInstall
mkdir -p $out
sed -i s+/usr/local+$out+g setup.ml
sed -i s+/usr/local+$out+g setup.data
prefix=$OCAMLFIND_DESTDIR ocaml setup.ml -install
ocaml setup.ml -install
runHook postInstall
'';