summary refs log tree commit diff
path: root/pkgs/build-support/ocaml
diff options
context:
space:
mode:
authorThéo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2018-11-06 17:18:09 +0100
committerThéo Zimmermann <theo.zimmermann@univ-paris-diderot.fr>2018-11-07 10:08:08 +0100
commit742bce7793502e00736e49d6f8ed13952c7f3ba1 (patch)
tree22ef95caeff94b7dc4eb1707c67b294a920561ec /pkgs/build-support/ocaml
parent406405d8bd419627114217a8c9f08593adff1372 (diff)
downloadnixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.tar
nixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.tar.gz
nixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.tar.bz2
nixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.tar.lz
nixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.tar.xz
nixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.tar.zst
nixpkgs-742bce7793502e00736e49d6f8ed13952c7f3ba1.zip
buildDunePackage: inline dune.installPhase for easier overriding
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
Diffstat (limited to 'pkgs/build-support/ocaml')
-rw-r--r--pkgs/build-support/ocaml/dune.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/ocaml/dune.nix b/pkgs/build-support/ocaml/dune.nix
index 3426f8e957d..7386b07f575 100644
--- a/pkgs/build-support/ocaml/dune.nix
+++ b/pkgs/build-support/ocaml/dune.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ocaml, findlib, dune }:
+{ stdenv, fetchurl, ocaml, findlib, dune, opaline }:
 
 { pname, version, buildInputs ? [], ... }@args:
 
@@ -21,7 +21,7 @@ stdenv.mkDerivation ({
   '';
   installPhase = ''
     runHook preInstall
-    ${dune.installPhase}
+    ${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
     runHook postInstall
   '';