b606786817
Add leangz (leantar) as a new build and runtime dependency. https://github.com/leanprover/lean4/releases/tag/v4.30.0 https://github.com/leanprover-community/mathlib4/blob/v4.30.0/lake-manifest.json
38 lines
953 B
Nix
38 lines
953 B
Nix
{
|
|
lib,
|
|
buildLakePackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildLakePackage {
|
|
pname = "lean4-batteries";
|
|
# nixpkgs-update: no auto update
|
|
version = "4.30.0-unstable-2026-05-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leanprover-community";
|
|
repo = "batteries";
|
|
rev = "32dc18cde3684679f3c003de608743b57498c56f";
|
|
hash = "sha256-OOcKCQEgnn9zkkwjHOovMb/IprNomTDufLOfEXs7hFU=";
|
|
};
|
|
|
|
leanPackageName = "batteries";
|
|
|
|
# Pre-build static library for downstream executables.
|
|
# TODO: upstream this to batteries
|
|
postPatch = ''
|
|
substituteInPlace lakefile.toml \
|
|
--replace-fail '[[lean_lib]]
|
|
name = "Batteries"' '[[lean_lib]]
|
|
name = "Batteries"
|
|
defaultFacets = ["static"]'
|
|
'';
|
|
|
|
meta = {
|
|
description = "The batteries-included extended library for Lean 4";
|
|
homepage = "https://github.com/leanprover-community/batteries";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ nadja-y ];
|
|
};
|
|
}
|