summary refs log tree commit diff
path: root/pkgs/build-support/ocaml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-06-25 07:49:44 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-07-02 07:13:34 +0200
commit885fb1406d623a8696b339b973b055849f5d435d (patch)
tree70479485685e674e29cd2b6380450ad29530e9c7 /pkgs/build-support/ocaml
parentf4a34b2c08a22f3a4acaba810240400d08072d6c (diff)
downloadnixpkgs-885fb1406d623a8696b339b973b055849f5d435d.tar
nixpkgs-885fb1406d623a8696b339b973b055849f5d435d.tar.gz
nixpkgs-885fb1406d623a8696b339b973b055849f5d435d.tar.bz2
nixpkgs-885fb1406d623a8696b339b973b055849f5d435d.tar.lz
nixpkgs-885fb1406d623a8696b339b973b055849f5d435d.tar.xz
nixpkgs-885fb1406d623a8696b339b973b055849f5d435d.tar.zst
nixpkgs-885fb1406d623a8696b339b973b055849f5d435d.zip
ocamlPackages.buildOasis: fix handling of installation prefix
Diffstat (limited to 'pkgs/build-support/ocaml')
-rw-r--r--pkgs/build-support/ocaml/oasis.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/build-support/ocaml/oasis.nix b/pkgs/build-support/ocaml/oasis.nix
index 74977486f2f..c1d1d699765 100644
--- a/pkgs/build-support/ocaml/oasis.nix
+++ b/pkgs/build-support/ocaml/oasis.nix
@@ -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
   '';