mkCoqDerivation: fix install path of ML plug-in built w/ dune

This commit is contained in:
Vincent Laporte 2024-06-24 22:06:18 +02:00 committed by Vincent Laporte
parent 019217743d
commit 5d61a87d94

View File

@ -138,10 +138,9 @@ stdenv.mkDerivation (removeAttrs ({
'';
installPhase = ''
runHook preInstall
dune install ${opam-name} --prefix=$out
mv $out/lib/coq $out/lib/TEMPORARY
dune install --prefix=$out --libdir $OCAMLFIND_DESTDIR ${opam-name}
mkdir $out/lib/coq/
mv $out/lib/TEMPORARY $out/lib/coq/${coq.coq-version}
mv $OCAMLFIND_DESTDIR/coq $out/lib/coq/${coq.coq-version}
runHook postInstall
'';
})