Skip to content

Commit 6b776fd

Browse files
authored
rocq-core: 9.0+rc1 -> 9.0.0 (#389454)
2 parents 79a38ed + 92f87ee commit 6b776fd

File tree

7 files changed

+23
-38
lines changed

7 files changed

+23
-38
lines changed

pkgs/applications/science/logic/coq/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let
6161
"8.19.2".sha256 = "sha256-q+i07JsMZp83Gqav6v1jxsgPLN7sPvp5/oszVnavmz0=";
6262
"8.20.0".sha256 = "sha256-WFpZlA6CzFVAruPhWcHQI7VOBVhrGLdFzWrHW0DTSl0=";
6363
"8.20.1".sha256 = "sha256-nRaLODPG4E3gUDzGrCK40vhl4+VhPyd+/fXFK/HC3Ig=";
64-
"9.0+rc1".sha256 = "sha256-TLq925HFdizxyHjKRMeHBH9rLRpLNUiVIfA1JSMgYXA=";
64+
"9.0.0".sha256 = "sha256-GRwYSvrJGiPD+I82gLOgotb+8Ra5xHZUJGcNwxWqZkU=";
6565
};
6666
releaseRev = v: "V${v}";
6767
fetched = import ../../../../build-support/coq/meta-fetch/default.nix

pkgs/applications/science/logic/rocq-core/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let
1515
lib = import ../../../../build-support/coq/extra-lib.nix { inherit (args) lib; };
1616

1717
release = {
18-
"9.0+rc1".sha256 = "sha256-TLq925HFdizxyHjKRMeHBH9rLRpLNUiVIfA1JSMgYXA=";
18+
"9.0.0".sha256 = "sha256-GRwYSvrJGiPD+I82gLOgotb+8Ra5xHZUJGcNwxWqZkU=";
1919
};
2020
releaseRev = v: "V${v}";
2121
fetched = import ../../../../build-support/coq/meta-fetch/default.nix

pkgs/development/coq-modules/stdlib/default.nix

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@
1616
defaultVersion =
1717
with lib.versions;
1818
lib.switch coq.version [
19-
{ case = isEq "9.0"; out = "9.0+rc1"; }
20-
{ case = isLt "8.21"; out = "8.20"; }
19+
{ case = isEq "9.0"; out = "9.0.0"; }
20+
# the one below is artificial as stdlib was included in Coq before
21+
{ case = isLt "9.0"; out = "9.0.0"; }
2122
] null;
2223
releaseRev = v: "V${v}";
2324

24-
release."9.0+rc1".sha256 = "sha256-raHwniQdpAX1HGlMofM8zVeXcmlUs+VJZZg5VF43k/M=";
25-
release."8.20".sha256 = "sha256-AcoS4edUYCfJME1wx8UbuSQRF3jmxhArcZyPIoXcfu0=";
26-
27-
useDune = true;
25+
release."9.0.0".sha256 = "sha256-2l7ak5Q/NbiNvUzIVXOniEneDXouBMNSSVFbD1Pf8cQ=";
2826

27+
configurePhase = ''
28+
echo no configuration
29+
'';
30+
buildPhase = ''
31+
echo building nothing
32+
'';
2933
installPhase = ''
3034
echo installing nothing
3135
'';
@@ -40,12 +44,6 @@
4044
o:
4145
# stdlib is already included in Coq <= 8.20
4246
if coq.version != null && coq.version != "dev" && lib.versions.isLt "8.21" coq.version then {
43-
configurePhase = ''
44-
echo no configuration
45-
'';
46-
buildPhase = ''
47-
echo building nothing
48-
'';
4947
installPhase = ''
5048
touch $out
5149
'';

pkgs/development/rocq-modules/stdlib/default.nix

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,15 @@ mkRocqDerivation {
1515
defaultVersion =
1616
with lib.versions;
1717
lib.switch rocq-core.version [
18-
{ case = isEq "9.0"; out = "9.0+rc1"; }
19-
{ case = isLt "8.21"; out = "8.20"; }
18+
{ case = isEq "9.0"; out = "9.0.0"; }
19+
# the one below is artificial as stdlib was included in Coq before
20+
{ case = isLt "9.0"; out = "9.0.0"; }
2021
] null;
2122
releaseRev = v: "V${v}";
2223

23-
release."9.0+rc1".sha256 = "sha256-raHwniQdpAX1HGlMofM8zVeXcmlUs+VJZZg5VF43k/M=";
24-
release."8.20".sha256 = "sha256-AcoS4edUYCfJME1wx8UbuSQRF3jmxhArcZyPIoXcfu0=";
24+
release."9.0.0".sha256 = "sha256-2l7ak5Q/NbiNvUzIVXOniEneDXouBMNSSVFbD1Pf8cQ=";
2525

26-
useDune = true;
27-
28-
configurePhase = ''
29-
patchShebangs dev/with-rocq-wrap.sh
30-
'';
31-
32-
buildPhase = ''
33-
dev/with-rocq-wrap.sh dune build -p rocq-stdlib @install ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
34-
'';
35-
36-
installPhase = ''
37-
dev/with-rocq-wrap.sh dune install --root . rocq-stdlib --prefix=$out --libdir $OCAMLFIND_DESTDIR
38-
mkdir $out/lib/coq/
39-
mv $OCAMLFIND_DESTDIR/coq $out/lib/coq/${rocq-core.rocq-version}
40-
'';
26+
mlPlugin = true;
4127

4228
meta = {
4329
description = "The Rocq Proof Assistant -- Standard Library";

pkgs/top-level/all-packages.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5648,7 +5648,7 @@ with pkgs;
56485648
ocamlPackages = ocaml-ng.ocamlPackages_4_14;
56495649
};
56505650

5651-
inherit (coqPackages) compcert;
5651+
inherit (coqPackages_8_20) compcert;
56525652

56535653
computecpp = wrapCCWith rec {
56545654
cc = computecpp-unwrapped;
@@ -17058,7 +17058,8 @@ with pkgs;
1705817058
stdenv = gccStdenv;
1705917059
};
1706017060

17061-
why3 = callPackage ../applications/science/logic/why3 { };
17061+
why3 = callPackage ../applications/science/logic/why3
17062+
{ coqPackages = coqPackages_8_20; };
1706217063

1706317064
yices = callPackage ../applications/science/logic/yices {
1706417065
gmp-static = gmp.override { withStatic = true; };

pkgs/top-level/coq-packages.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ in rec {
237237
coq_8_18 = mkCoq "8.18";
238238
coq_8_19 = mkCoq "8.19";
239239
coq_8_20 = mkCoq "8.20";
240-
coq_9_0 = mkCoq "9.0+rc1";
240+
coq_9_0 = mkCoq "9.0";
241241

242242
coqPackages_8_5 = mkCoqPackages coq_8_5;
243243
coqPackages_8_6 = mkCoqPackages coq_8_6;
@@ -257,6 +257,6 @@ in rec {
257257
coqPackages_8_20 = mkCoqPackages coq_8_20;
258258
coqPackages_9_0 = mkCoqPackages coq_9_0;
259259

260-
coqPackages = recurseIntoAttrs coqPackages_8_20;
260+
coqPackages = recurseIntoAttrs coqPackages_9_0;
261261
coq = coqPackages.coq;
262262
}

pkgs/top-level/rocq-packages.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ in rec {
4949
let self = lib.makeScope newScope (lib.flip mkRocqPackages' rocq-core); in
5050
self.filterPackages (! rocq-core.dontFilter or false);
5151

52-
rocq-core_9_0 = mkRocq "9.0+rc1";
52+
rocq-core_9_0 = mkRocq "9.0";
5353

5454
rocqPackages_9_0 = mkRocqPackages rocq-core_9_0;
5555

0 commit comments

Comments
 (0)