Jump to content

Lean 4

From Official NixOS Wiki
Revision as of 08:15, 25 July 2026 by Jthulhu (talk | contribs) (Jthulhu moved page Lean4 to Lean 4: Misspelled title)

Building Lean 4 projects

Use the following

leanPackages.buildLakePackage {
  pname = "my-project";
  version = "0.1.0";
  src = ./.;
  leanDeps = with leanPackages; [ mathlib ];
  lakeHash = null; # all deps nix-managed; set to lib.fakeHash for Lake-managed deps
}