coqPackages: refactor

This commit is contained in:
Cyril Cohen
2020-08-28 23:05:46 +02:00
committed by Vincent Laporte
parent 04065a7354
commit 9ffd16b385
54 changed files with 1331 additions and 2217 deletions

View File

@@ -1,30 +1,17 @@
{ stdenv, fetchFromGitHub, coq, bignums }:
{ lib, mkCoqDerivation, coq, bignums, version ? null }:
stdenv.mkDerivation rec {
with lib; mkCoqDerivation {
name = "coq${coq.coq-version}-math-classes-${version}";
version = "8.11.0";
pname = "math-classes";
inherit version;
defaultVersion = if versions.range "8.6" "8.11" coq.coq-version then "8.11.0" else null;
release."8.11.0".sha256 = "1hjgncvm1m46lw6264w4dqsy8dbh74vhmzq52x0fba2yqlvy94sf";
src = fetchFromGitHub {
owner = "coq-community";
repo = "math-classes";
rev = version;
sha256 = "1hjgncvm1m46lw6264w4dqsy8dbh74vhmzq52x0fba2yqlvy94sf";
};
extraBuildInputs = [ bignums ];
buildInputs = [ coq bignums ];
enableParallelBuilding = true;
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = with stdenv.lib; {
meta = {
homepage = "https://math-classes.github.io";
description = "A library of abstract interfaces for mathematical structures in Coq.";
maintainers = with maintainers; [ siddharthist jwiegley ];
platforms = coq.meta.platforms;
};
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" ];
};
}