2017-10-22 19:49:16 +02:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
2018-03-27 12:43:16 +02:00
|
|
|
let params =
|
2018-03-06 16:17:45 +01:00
|
|
|
{
|
|
|
|
"8.6" = {
|
|
|
|
rev = "v8.6.0";
|
|
|
|
sha256 = "0553pcsy21cyhmns6k9qggzb67az8kl31d0lwlnz08bsqswigzrj";
|
|
|
|
};
|
|
|
|
"8.7" = {
|
|
|
|
rev = "V8.7.0";
|
|
|
|
sha256 = "11c4sdmpd3l6jjl4v6k213z9fhrmmm1xnly3zmzam1wrrdif4ghl";
|
|
|
|
};
|
2018-03-21 15:00:47 +01:00
|
|
|
"8.8" = {
|
|
|
|
rev = "V8.8+beta1";
|
|
|
|
sha256 = "1ymxyrvjygscxkfj3qkq66skl3vdjhb670rzvsvgmwrjkrakjnfg";
|
|
|
|
};
|
2018-03-27 12:43:16 +02:00
|
|
|
};
|
|
|
|
param = params."${coq.coq-version}"
|
2018-03-06 16:17:45 +01:00
|
|
|
; in
|
2017-10-22 19:49:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-bignums";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coq";
|
|
|
|
repo = "bignums";
|
2018-03-06 16:17:45 +01:00
|
|
|
inherit (param) rev sha256;
|
2017-10-22 19:49:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib coq ];
|
|
|
|
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-06 16:17:45 +01:00
|
|
|
passthru = {
|
2018-03-27 12:43:16 +02:00
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
2018-03-06 16:17:45 +01:00
|
|
|
};
|
2017-10-22 19:49:16 +02:00
|
|
|
}
|