2020-05-09 07:47:47 +02:00
|
|
|
{ stdenv, which, fetchFromGitHub, coq, bignums }:
|
|
|
|
|
|
|
|
let
|
|
|
|
params =
|
|
|
|
let v_8_8 = {
|
|
|
|
version = "8.8";
|
|
|
|
sha256 = "075yjczk79pf1hd3lgdjiz84ilkzfxjh18lgzrhhqp7d3kz5lxp5";
|
|
|
|
};
|
2020-08-16 08:24:22 +02:00
|
|
|
v_8_10 = {
|
|
|
|
version = "8.10";
|
|
|
|
sha256 = "0r9gnh5a5ykiiz5h1i8xnzgiydpwc4z9qhndxyya85xq0f910qaz";
|
|
|
|
};
|
2020-05-09 07:47:47 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
"8.7" = {
|
|
|
|
version = "8.7.2";
|
|
|
|
sha256 = "15zlcrx06qqxjy3nhh22wzy0rb4npc8l4nx2bbsfsvrisbq1qb7k";
|
|
|
|
};
|
|
|
|
"8.8" = v_8_8;
|
|
|
|
"8.9" = v_8_8;
|
2020-08-16 08:24:22 +02:00
|
|
|
"8.10" = v_8_10;
|
|
|
|
"8.11" = v_8_10;
|
2020-09-02 09:38:29 +02:00
|
|
|
"8.12" = {
|
|
|
|
version = "8.12";
|
|
|
|
sha256 = "1slka4w0pya15js4drx9frj7lxyp3k2lzib8v23givzpnxs8ijdj";
|
|
|
|
};
|
2020-05-09 07:47:47 +02:00
|
|
|
};
|
|
|
|
param = params.${coq.coq-version};
|
|
|
|
in
|
2018-10-01 11:49:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
inherit (param) version;
|
|
|
|
name = "coq${coq.coq-version}-coqprime-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thery";
|
|
|
|
repo = "coqprime";
|
|
|
|
rev = "v${version}";
|
|
|
|
inherit (param) sha256;
|
|
|
|
};
|
|
|
|
|
2020-05-09 07:47:47 +02:00
|
|
|
buildInputs = [ which coq ];
|
2018-10-01 11:49:11 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ bignums ];
|
|
|
|
|
2019-11-05 02:10:31 +01:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2018-10-01 11:49:11 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library to certify primality using Pocklington certificate and Elliptic Curve Certificate";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (coq.meta) platforms;
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
|
|
|
};
|
|
|
|
}
|