coqPackages: refactor mathcomp packages

Closes #61456
This commit is contained in:
Cyril Cohen
2019-05-15 14:11:21 +00:00
committed by Vincent Laporte
parent 4ec7a6eda9
commit b71c308591
7 changed files with 295 additions and 198 deletions
@@ -1,30 +0,0 @@
{ stdenv, fetchFromGitHub, coq, mathcomp-bigenough, mathcomp-finmap }:
stdenv.mkDerivation rec {
version = "0.2.0";
name = "coq${coq.coq-version}-mathcomp-analysis-${version}";
src = fetchFromGitHub {
owner = "math-comp";
repo = "analysis";
rev = version;
sha256 = "1186xjxgns4ns1szyi931964bjm0mp126qzlv10mkqqgfw07nhrd";
};
buildInputs = [ coq ];
propagatedBuildInputs = [ mathcomp-bigenough mathcomp-finmap ];
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
meta = {
description = "Analysis library compatible with Mathematical Components";
inherit (src.meta) homepage;
inherit (coq.meta) platforms;
license = stdenv.lib.licenses.cecill-c;
maintainers = [ stdenv.lib.maintainers.vbgl ];
};
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.8" "8.9" ];
};
}