2019-08-06 09:15:37 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which, coq }:
|
|
|
|
|
|
|
|
let params = {
|
2020-03-03 13:10:12 +00:00
|
|
|
"8.11" = rec {
|
2020-06-04 08:25:19 +00:00
|
|
|
version = "1.4.0";
|
2020-03-03 13:10:12 +00:00
|
|
|
rev = "v${version}";
|
2020-06-04 08:25:19 +00:00
|
|
|
sha256 = "1pzmjgvvdwki59rfsha3c1ik4gii39j44ijyb9m9as1cyfpxx906";
|
2019-08-06 09:15:37 +00:00
|
|
|
};
|
|
|
|
};
|
2019-08-13 21:52:01 +00:00
|
|
|
param = params.${coq.coq-version};
|
2019-08-06 09:15:37 +00:00
|
|
|
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 ]);
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2019-08-06 09:15:37 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|