1{ lib, mkCoqDerivation, coq, bignums, version ? null }:
2
3with lib; mkCoqDerivation {
4
5 pname = "math-classes";
6 inherit version;
7 defaultVersion = if versions.range "8.11" "8.13" coq.coq-version then "8.13.0" else
8 if versions.range "8.6" "8.10" coq.coq-version then "8.12.0" else null;
9 release."8.12.0".sha256 = "14nd6a08zncrl5yg2gzk0xf4iinwq4hxnsgm4fyv07ydbkxfb425";
10 release."8.13.0".sha256 = "1ln7ziivfbxzbdvlhbvyg3v30jgblncmwcsam6gg3d1zz6r7cbby";
11
12 extraBuildInputs = [ bignums ];
13
14 meta = {
15 homepage = "https://math-classes.github.io";
16 description = "A library of abstract interfaces for mathematical structures in Coq.";
17 maintainers = with maintainers; [ siddharthist jwiegley ];
18 };
19}