Commit 45c3600b authored by Antonio Nuno Monteiro's avatar Antonio Nuno Monteiro Committed by Vincent Laporte
Browse files

buildDunePackage: fix doc installation

The default directory where dune expects docs is in
`$out/doc`, but Nix installs it in `$out/share/doc`
parent adb03acc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -30,7 +30,10 @@ stdenv.mkDerivation ({
  '';
  installPhase = ''
    runHook preInstall
    dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname}
    dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname} \
     ${if lib.versionAtLeast Dune.version "2.9"
       then "--docdir $out/share/doc"
       else ""}
    runHook postInstall
  '';