buildDunePackage: fix doc installation
The default directory where dune expects docs is in `$out/doc`, but Nix installs it in `$out/share/doc`
This commit is contained in:
parent
adb03acc9b
commit
45c3600bb1
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user