{"id":13484741,"url":"https://github.com/leanprover/elan","last_synced_at":"2026-02-25T11:12:21.278Z","repository":{"id":38821248,"uuid":"128052474","full_name":"leanprover/elan","owner":"leanprover","description":"The Lean version manager","archived":false,"fork":false,"pushed_at":"2025-04-30T12:04:36.000Z","size":1011,"stargazers_count":373,"open_issues_count":29,"forks_count":43,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-10T11:37:28.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leanprover.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-04T11:27:24.000Z","updated_at":"2025-05-04T08:11:35.000Z","dependencies_parsed_at":"2024-01-25T17:03:48.894Z","dependency_job_id":"61312817-562a-4b4d-a1e1-c6aa844e9f15","html_url":"https://github.com/leanprover/elan","commit_stats":{"total_commits":251,"total_committers":16,"mean_commits":15.6875,"dds":"0.15139442231075695","last_synced_commit":"342a0ca3870d06bd32db4a16b1549219657b5d55"},"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Felan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Felan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Felan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Felan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanprover","download_url":"https://codeload.github.com/leanprover/elan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253411468,"owners_count":21904141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:01:32.133Z","updated_at":"2026-02-25T11:12:16.238Z","avatar_url":"https://github.com/leanprover.png","language":"Rust","readme":"# elan: Lean version manager\n\n*elan* is a small tool for managing your installations of the [Lean theorem prover](https://leanprover.github.io). It places `lean` and `lake` binaries in your `PATH` that automatically select and, if necessary, download the Lean version described in your project's `lean-toolchain` file.\nYou can also install, select, run, and uninstall Lean versions manually using the commands of the `elan` executable.\n\n```shell\n~/my/package $ cat lean-toolchain\nnightly-2023-06-27\n\n~/my/package $ lake --version\ninfo: downloading component 'lean'\nTotal: 181.0 MiB Speed:  17.7 MiB/s\ninfo: installing component 'lean'\nLake version 4.1.0-pre (Lean version 4.0.0-nightly-2023-06-27)\n\n~/my/package $ elan show\ninstalled toolchains\n--------------------\n\nnightly (default)\nnightly-2022-06-27\n\nactive toolchain\n----------------\n\nnightly-2023-06-27 (overridden by '/home/me/my/package/lean-toolchain')\nLean (version 4.0.0-nightly-2023-06-27, commit bb8cc08de85f, Release)\n```\n\n# Installation\n\n## Manual Installation\n\n**Linux/macOS/Cygwin/MSYS2/git bash/...**: run the following command in a terminal:\n\n```bash\ncurl https://elan.lean-lang.org/elan-init.sh -sSf | sh\n```\n\n**Windows**: run the following commands in a terminal (Command Prompt or PowerShell ≥ version 7.4.1):\n```bash\ncurl -O --location https://elan.lean-lang.org/elan-init.ps1\npowershell -ExecutionPolicy Bypass -f elan-init.ps1\ndel elan-init.ps1\n```\n\nAlternatively, on **any supported platform**: Grab the [latest release](https://github.com/leanprover/elan/releases/latest) for your platform, unpack it, and run the contained installation program.\n\nThe installation will tell you where it will install elan to (`~/.elan` by default), and also ask you about editing your shell config to extend `PATH`. elan can be uninstalled via `elan self uninstall`, which should revert these changes.\n\n## NixOS\n\nThe toolchains downloaded by elan require some patching on NixOS, which is done automatically by the version available in Nixpkgs.\n```bash\n$ nix-env -iA nixpkgs.elan\n```\n\n# Prerequisites\n\nOn some systems, `lake` will not work out of the box even if installed through elan:\n\n* You'll need [git](https://git-scm.com/download) to download dependencies through `lake`.\n\n# Implementation\n\n*elan* is basically a fork of [rustup](https://github.com/rust-lang-nursery/rustup.rs). Apart from new features and adaptions to the Lean infrastructure, these are the basic changes to the original code:\n\n* Replaced every mention of `rustup` with `elan`, `cargo` with `lake`, and `rust(c)` with `lean`\n* Merged `CARGO_HOME` and `RUSTUP_HOME`\n* Removed options to configure host triple\n\n# Build\n\nIf you want to build elan from source, you will need to install [Rust](https://www.rust-lang.org/tools/install) and\nCargo and run the following:\n\n```\ncargo build\n```\n\nThe `elan-init` installer will show up in `target/debug`. This is also the main `elan` executable, so can test that it works by running the following:\n\n```\nln -s ./target/debug/elan-init ./elan\n./elan --help\n```\n\n## Build on Windows\n\nThe windows build requires a 64-bit developer command prompt and a Windows version of `perl.exe` which you can download\nfrom [https://strawberryperl.com/](https://strawberryperl.com/). Make sure this downloaded perl.exe is the first thing\nin your PATH so that the build does not try and use `C:\\Program Files\\Git\\usr\\bin\\perl.exe`. The git provided version of\nperl doesn't work for some reason.\n\nThen you can run `cargo build` as shown above.\n","funding_links":[],"categories":["Development","Rust","Core packages","Version Managers"],"sub_categories":["Lean"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Felan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanprover%2Felan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Felan/lists"}