blob: 5ac5ffadc806fb4e8aca1b6aa7df8aa8e9d93ea9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
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 ];
};
}
|