374e6bcc40
Format all Nix files using the officially approved formatter, making the CI check introduced in the previous commit succeed: nix-build ci -A fmt.check This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153) of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166). This commit will lead to merge conflicts for a number of PRs, up to an estimated ~1100 (~33%) among the PRs with activity in the past 2 months, but that should be lower than what it would be without the previous [partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537). Merge conflicts caused by this commit can now automatically be resolved while rebasing using the [auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase). If you run into any problems regarding any of this, please reach out to the [formatting team](https://nixos.org/community/teams/formatting/) by pinging @NixOS/nix-formatting.
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
mkCoqDerivation,
|
|
coq,
|
|
bignums,
|
|
version ? null,
|
|
}:
|
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "math-classes";
|
|
inherit version;
|
|
defaultVersion =
|
|
with lib.versions;
|
|
lib.switch coq.coq-version [
|
|
{
|
|
case = range "8.17" "8.20";
|
|
out = "8.19.0";
|
|
}
|
|
{
|
|
case = range "8.12" "8.18";
|
|
out = "8.18.0";
|
|
}
|
|
{
|
|
case = range "8.12" "8.17";
|
|
out = "8.17.0";
|
|
}
|
|
{
|
|
case = range "8.6" "8.16";
|
|
out = "8.15.0";
|
|
}
|
|
] null;
|
|
release."8.12.0".sha256 = "14nd6a08zncrl5yg2gzk0xf4iinwq4hxnsgm4fyv07ydbkxfb425";
|
|
release."8.13.0".sha256 = "1ln7ziivfbxzbdvlhbvyg3v30jgblncmwcsam6gg3d1zz6r7cbby";
|
|
release."8.15.0".sha256 = "10w1hm537k6jx8a8vghq1yx12rsa0sjk2ipv3scgir71ln30hllw";
|
|
release."8.17.0".sha256 = "sha256-WklL8pgYTd0l4TGt7h7tWj1qcFcXvoPn25+XKF1pIKA=";
|
|
release."8.18.0".sha256 = "sha256-0WwPss8+Vr37zX616xeuS4TvtImtSbToFQkQostIjO8=";
|
|
release."8.19.0".sha256 = "sha256-rsV96W9MPFi/DKsepNPm1QnC2DMemio+uALIgzVYw0w=";
|
|
|
|
mlPlugin = true; # uses coq-bignums.plugin
|
|
|
|
propagatedBuildInputs = [ bignums ];
|
|
|
|
meta = {
|
|
homepage = "https://math-classes.github.io";
|
|
description = "Library of abstract interfaces for mathematical structures in Coq";
|
|
maintainers = with lib.maintainers; [
|
|
siddharthist
|
|
jwiegley
|
|
];
|
|
};
|
|
}
|