Skip to content

Commit f6376df

Browse files
author
Ryan Lahfa
committed
chore(docs/user): update to 4.11.0-rc2
Micro-guide for update: - Update the Lean flake. - Update all the sha256 hashes of every dependency if you have a compilation error, e.g. batteries changed, etc. The day where `inputs.lean.packages.${system}.deprecated` disappear, we will need to consider an alternative for the nixpkgs from lean, etc. Signed-off-by: Ryan Lahfa <[email protected]>
1 parent fa20b35 commit f6376df

File tree

2 files changed

+18
-121
lines changed

2 files changed

+18
-121
lines changed

docs/user/flake.lock

Lines changed: 9 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/user/flake.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
description = "Aeneas documentation";
44

5-
inputs.lean.url = "github:leanprover/lean4/v4.10.0";
5+
inputs.lean.url = "github:leanprover/lean4/v4.11.0-rc2";
66
inputs.flake-utils.follows = "lean/flake-utils";
77
inputs.mdBook = {
88
url = "github:leanprover/mdBook";
@@ -18,7 +18,7 @@
1818
};
1919

2020
outputs = inputs@{ self, ... }: inputs.flake-utils.lib.eachDefaultSystem (system:
21-
with inputs.lean.packages.${system}; with nixpkgs;
21+
with inputs.lean.packages.${system}.deprecated; with nixpkgs;
2222
let
2323
doc-src = ./.; # lib.sourceByRegex ../. ["doc.*" "tests(/lean(/beginEndAsMacro.lean)?)?"];
2424
leanLib = callPackage ./nix { };
@@ -87,46 +87,46 @@
8787

8888
aeneas-base =
8989
let
90-
manifest = builtins.fromJSON (builtins.readFile ./lake-manifest.json);
90+
manifest = builtins.fromJSON (builtins.readFile ../../backends/lean/lake-manifest.json);
9191
fetchFromLakeManifest = leanLib.fetchFromLakeManifest manifest;
9292
inherit (leanLib) addFakeFiles;
9393

9494
batteries = buildLeanPackage {
9595
name = "Batteries";
9696
src = fetchFromLakeManifest {
9797
name = "batteries";
98-
hash = "sha256-JbOOKsUiYedNj3oiCNfwgkWyEIXsb1bAUm3uSEWsWPs=";
98+
hash = "sha256-EGcjOcTu66rtAICAqgPKaR8kBlImoq4lUZfNZR9dHiY=";
9999
};
100100
};
101101
qq = buildLeanPackage {
102102
name = "Qq";
103103
src = fetchFromLakeManifest {
104104
name = "Qq";
105-
hash = "sha256-//sZE32XzebePy81HEwNhIH8YW8iHgk+O8A0y/qNJrg=";
105+
hash = "sha256-iFlAiq8Uxq+QD6ql4EMpRQENvIhKdioaleoEiDmMuDQ=";
106106
};
107107
};
108108
aesop = buildLeanPackage {
109109
name = "Aesop";
110110
deps = [ batteries ];
111111
src = fetchFromLakeManifest {
112112
name = "aesop";
113-
hash = "sha256-LzooSD6NaSQyqKkBcxbSbjIZHrnDBx/lp/s4UdWeHpU=";
113+
hash = "sha256-97xcl82SU9/EZ8L4vT7g/Ureoi11s3c4ZeFlaCd4Az4=";
114114
};
115115
};
116116
import-graph = buildLeanPackage {
117117
name = "ImportGraph";
118118
deps = [ batteries ];
119119
src = fetchFromLakeManifest {
120120
name = "importGraph";
121-
hash = "sha256-3bWWnklUHuY/dA1Y3SK78SSDE+J8syEsMPJ67LnRI3M=";
121+
hash = "sha256-u8tk5IWU/n47kmNAlxZCmurq7e08oCzANhsk9VJeCCM=";
122122
};
123123
};
124124
proof-widgets = buildLeanPackage {
125125
name = "ProofWidgets";
126126
deps = [ batteries ];
127127
src = fetchFromLakeManifest {
128128
name = "proofwidgets";
129-
hash = "sha256-6PzWhCNxxcuh0vEV0JhV0G30NVkYGEDup1j3KvG2VzA=";
129+
hash = "sha256-jPvUi73NylxFiU5V0tjK92M0hJfHWZi5ULZldDwctYY=";
130130
};
131131

132132
overrideBuildModAttrs = addFakeFiles {
@@ -150,7 +150,7 @@
150150
name = "Mathlib";
151151
src = fetchFromLakeManifest {
152152
name = "mathlib";
153-
hash = "sha256-gJYmaNDVus3vgUE3aNQfyMCcQJxw/lq5aYtLjs4OI7I=";
153+
hash = "sha256-3FnWd0dUVhNyUPxLNNHA41RWF34fwmXulnRSIEmIQXM=";
154154
};
155155
};
156156
in

0 commit comments

Comments
 (0)