buildDunePackage: inline dune.installPhase for easier overriding

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Théo Zimmermann 2018-11-06 17:18:09 +01:00
parent 406405d8bd
commit 742bce7793
No known key found for this signature in database
GPG Key ID: F1744A0942F536C7

View File

@ -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
'';