2017-10-22 18:49:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
2019-03-05 12:56:55 +00:00
|
|
|
let params = {
|
|
|
|
"8.6" = {
|
|
|
|
rev = "v8.6.0";
|
|
|
|
sha256 = "0553pcsy21cyhmns6k9qggzb67az8kl31d0lwlnz08bsqswigzrj";
|
|
|
|
};
|
|
|
|
"8.7" = {
|
|
|
|
rev = "V8.7.0";
|
|
|
|
sha256 = "11c4sdmpd3l6jjl4v6k213z9fhrmmm1xnly3zmzam1wrrdif4ghl";
|
|
|
|
};
|
|
|
|
"8.8" = {
|
|
|
|
rev = "V8.8.0";
|
|
|
|
sha256 = "1ymxyrvjygscxkfj3qkq66skl3vdjhb670rzvsvgmwrjkrakjnfg";
|
|
|
|
};
|
|
|
|
"8.9" = {
|
|
|
|
rev = "V8.9.0";
|
|
|
|
sha256 = "03qz1w2xb2j5p06liz5yyafl0fl9vprcqm6j0iwi7rxwghl00p01";
|
|
|
|
};
|
2019-06-12 09:16:31 +01:00
|
|
|
"8.10" = {
|
|
|
|
rev = "V8.10+beta1";
|
|
|
|
sha256 = "1slw227idwjw9a21vj3s6kal22mrmvvlpg8r7xk590ml99bn6404";
|
|
|
|
};
|
2018-11-12 11:12:14 +00:00
|
|
|
};
|
2019-08-13 22:52:01 +01:00
|
|
|
param = params.${coq.coq-version};
|
2019-03-05 12:56:55 +00:00
|
|
|
in
|
2017-10-22 18:49:16 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2017-10-22 18:49:16 +01:00
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-bignums";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coq";
|
|
|
|
repo = "bignums";
|
2018-03-06 15:17:45 +00:00
|
|
|
inherit (param) rev sha256;
|
2017-10-22 18:49:16 +01:00
|
|
|
};
|
|
|
|
|
2018-10-19 09:25:09 +01:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
|
2017-10-22 18:49:16 +01:00
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2017-10-22 18:49:16 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-06 15:17:45 +00:00
|
|
|
passthru = {
|
2018-03-27 11:43:16 +01:00
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
2018-03-06 15:17:45 +00:00
|
|
|
};
|
2017-10-22 18:49:16 +01:00
|
|
|
}
|