Skip to content

Commit 0c7437a

Browse files
authored
elan: add proofwidgets (#127)
1 parent 96c5460 commit 0c7437a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/lean/elan.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ pub struct ElanConfig {
1010
pub retain_lean_nightly_versions: usize,
1111
#[structopt(long, default_value = "1")]
1212
pub retain_glean_versions: usize,
13+
#[structopt(long, default_value = "10")]
14+
pub retain_proofwidgets_versions: usize,
1315
}

src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,14 @@ fn main() {
355355
buffer_path.clone().unwrap(),
356356
true,
357357
);
358+
let proofwidgets_src = stream_pipe::ByteStreamPipe::new(
359+
GitHubRelease::new(
360+
String::from("leanprover-community/ProofWidgets4"),
361+
source.retain_proofwidgets_versions,
362+
),
363+
buffer_path.clone().unwrap(),
364+
true,
365+
);
358366
let lean_org_repo_src = merge_pipe! {
359367
lean4: lean_src,
360368
lean4_nightly: lean_nightly_src,
@@ -363,6 +371,7 @@ fn main() {
363371
elan: elan_src,
364372
leanprover: lean_org_repo_src,
365373
glean: glean_src,
374+
proofwidgets: proofwidgets_src,
366375
};
367376
let indexed = index_pipe::IndexPipe::new(
368377
unified,

0 commit comments

Comments
 (0)