ocamlPackages.buildOasis: fix handling of installation prefix
This commit is contained in:
parent
f4a34b2c08
commit
885fb1406d
@ -23,7 +23,7 @@ stdenv.mkDerivation (args // {
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
oasis setup
|
oasis setup
|
||||||
ocaml setup.ml -configure
|
ocaml setup.ml -configure --prefix $OCAMLFIND_DESTDIR --exec-prefix $out
|
||||||
ocaml setup.ml -build
|
ocaml setup.ml -build
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
@ -37,9 +37,7 @@ stdenv.mkDerivation (args // {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
sed -i s+/usr/local+$out+g setup.ml
|
ocaml setup.ml -install
|
||||||
sed -i s+/usr/local+$out+g setup.data
|
|
||||||
prefix=$OCAMLFIND_DESTDIR ocaml setup.ml -install
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user