coqPackages.stdlib: keep compiling with master

This commit is contained in:
Pierre Roux
2025-01-16 17:45:22 +01:00
committed by Vincent Laporte
parent a453c04f59
commit 7679257874
@@ -7,7 +7,7 @@
(mkCoqDerivation {
pname = "stdlib";
repo = "coq";
repo = "stdlib";
owner = "coq";
opam-name = "coq-stdlib";
@@ -30,16 +30,15 @@
useDune = true;
configurePhase = ''
patchShebangs stdlib/dev/with-rocq-wrap.sh
''; # don't run Coq's configure
patchShebangs dev/with-rocq-wrap.sh
'';
buildPhase = ''
cd stdlib
dev/with-rocq-wrap.sh dune build -p coq-stdlib @install ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
dev/with-rocq-wrap.sh dune build -p rocq-stdlib,coq-stdlib @install ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
'';
installPhase = ''
dev/with-rocq-wrap.sh dune install --root . coq-stdlib --prefix=$out --libdir $OCAMLFIND_DESTDIR
dev/with-rocq-wrap.sh dune install --root . rocq-stdlib coq-stdlib --prefix=$out --libdir $OCAMLFIND_DESTDIR
mkdir $out/lib/coq/
mv $OCAMLFIND_DESTDIR/coq $out/lib/coq/${coq.coq-version}
'';