# lake **Repository Path**: zzsj01/lake ## Basic Information - **Project Name**: lake - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-03 - **Last Updated**: 2023-12-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # REPOSITORY DEPRECATION NOTICE **Lake has been merged into the [main Lean repository](https://github.com/leanprover/lean4) (at the time of writing, in [src/lake](https://github.com/leanprover/lean4/tree/master/src/lake)). This repository exists solely as an archive of its state prior to that merge.** # Lake Lake (Lean Make) is a new build system and package manager for Lean 4. With Lake, the package's configuration is written in Lean inside a dedicated `lakefile.lean` stored in the root of the package's directory. Each `lakefile.lean` includes a `package` declaration (akin to `main`) which defines the package's basic configuration. It also typically includes build configurations for different targets (e.g., Lean libraries and binary executables) and Lean scripts to run on the command line (via `lake script run`). ***This README provides information about Lake relative to the current commit. If you are looking for documentation for the Lake version shipped with a given Lean nightly, you should look at the README of that version.*** ## Table of Contents * [Getting Lake](#getting-lake) * [Creating and Building a Package](#creating-and-building-a-package) * [Glossary of Terms](#glossary-of-terms) * [Package Configuration Options](#package-configuration-options) + [Layout](#layout) + [Build & Run](#build--run) + [Cloud Releases](#cloud-releases) * [Defining Build Targets](#defining-build-targets) + [Lean Libraries](#lean-libraries) + [Binary Executables](#binary-executables) + [External Libraries](#external-libraries) + [Custom Targets](#custom-targets) * [Defining New Facets](#defining-new-facets) * [Adding Dependencies](#adding-dependencies) + [Syntax of `require`](#syntax-of-require) * [GitHub Release Builds](#github-release-builds) * [Writing and Running Scripts](#writing-and-running-scripts) * [Building and Running Lake from the Source](#building-and-running-lake-from-the-source) + [Building with Nix Flakes](#building-with-nix-flakes) + [Augmenting Lake's Search Path](#augmenting-lakes-search-path) ## Getting Lake Lake is part of the [lean4](https://github.com/leanprover/lean4) repository and is distributed along with its official releases (e.g., as part of the [elan](https://github.com/leanprover/elan) toolchain). So if you have installed a semi-recent Lean 4 nightly, you should already have it! Note that the Lake included with Lean is not updated as frequently as this repository, so some bleeding edge features may be missing. If you want to build the latest version from the source yourself, check out the [build instructions](#building-and-running-lake-from-the-source) at the bottom of this README. ## Creating and Building a Package To create a new package, either run `lake init [