summaryrefslogtreecommitdiff
path: root/pkgs/development/lean-modules/mathlib/default.nix
blob: 70a34dd9f33341ea86b3b93bab120505a282c9af (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
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  buildLakePackage,
  fetchFromGitHub,
  batteries,
  aesop,
  Qq,
  proofwidgets,
  plausible,
  LeanSearchClient,
  importGraph,
  tests,
}:

buildLakePackage {
  pname = "lean4-mathlib";
  version = "4.29.0";

  src = fetchFromGitHub {
    owner = "leanprover-community";
    repo = "mathlib4";
    tag = "v4.29.0";
    hash = "sha256-fe+qS7gNxdLnACX3/jqToa9m7r1gbskY6kDJbm1ZefE=";
  };

  leanPackageName = "mathlib";
  leanDeps = [
    batteries
    aesop
    Qq
    proofwidgets
    plausible
    LeanSearchClient
    importGraph
  ];

  requiredSystemFeatures = [ "big-parallel" ];

  passthru.tests = {
    inherit (tests.lake) weak-minimax;
  };

  meta = {
    description = "Mathematical library for Lean 4";
    homepage = "https://github.com/leanprover-community/mathlib4";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ nadja-y ];
  };
}