2018-10-01 10:49:11 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq, bignums }:
|
|
|
|
|
|
|
|
let params =
|
2018-12-13 09:20:24 +00:00
|
|
|
let v_8_8 = {
|
|
|
|
version = "8.8";
|
|
|
|
sha256 = "075yjczk79pf1hd3lgdjiz84ilkzfxjh18lgzrhhqp7d3kz5lxp5";
|
|
|
|
};
|
|
|
|
in
|
2018-10-01 10:49:11 +01:00
|
|
|
{
|
|
|
|
"8.7" = {
|
|
|
|
version = "8.7.2";
|
|
|
|
sha256 = "15zlcrx06qqxjy3nhh22wzy0rb4npc8l4nx2bbsfsvrisbq1qb7k";
|
|
|
|
};
|
2018-12-13 09:20:24 +00:00
|
|
|
"8.8" = v_8_8;
|
|
|
|
"8.9" = v_8_8;
|
2019-06-12 09:16:37 +01:00
|
|
|
"8.10" = v_8_8;
|
2018-10-01 10:49:11 +01:00
|
|
|
};
|
2019-08-13 22:52:01 +01:00
|
|
|
param = params.${coq.coq-version}
|
2018-10-01 10:49:11 +01:00
|
|
|
; in
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bignums ];
|
|
|
|
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|