2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which, coq }:
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
"8.11" = rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.6.0_8.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0ahxjnzmd7kl3gl38kyjqzkfgllncr2ybnw8bvgrc6iddgga7bpq";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
"8.12" = rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.6.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0kf99i43mlf750fr7fric764mm495a53mg5kahnbp6zcjcxxrm0b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
param = params.${coq.coq-version};
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "coq${coq.coq-version}-elpi-${param.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LPCIC";
|
|
|
|
repo = "coq-elpi";
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
buildInputs = [ coq coq.ocaml ] ++ (with coq.ocamlPackages; [ findlib elpi ]);
|
|
|
|
|
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Coq plugin embedding ELPI.";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.cohencyril ];
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
inherit (coq.meta) platforms;
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
compatibleCoqVersions = stdenv.lib.flip builtins.hasAttr params;
|
|
|
|
};
|
|
|
|
}
|