2017-11-12 18:33:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
2018-07-08 13:13:27 +02:00
|
|
|
let
|
|
|
|
params = {
|
2017-11-12 18:33:40 +01:00
|
|
|
"8.6" = {
|
2017-12-20 19:54:08 +01:00
|
|
|
version = "1.0";
|
|
|
|
rev = "v1.0";
|
|
|
|
sha256 = "19ylw9v9g35607w4hm86j7mmkghh07hmkc1ls5bqlz3dizh5q4pj";
|
2017-11-12 18:33:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
"8.7" = {
|
2017-12-20 19:54:08 +01:00
|
|
|
version = "1.0";
|
|
|
|
rev = "v1.0-8.7";
|
|
|
|
sha256 = "1bavg4zl1xn0jqrdq8iw7xqzdvdf39ligj9saz5m9c507zri952h";
|
2017-11-12 18:33:40 +01:00
|
|
|
};
|
|
|
|
|
2018-07-06 00:16:42 +02:00
|
|
|
"8.8" = {
|
2019-07-23 22:27:55 +02:00
|
|
|
version = "1.2";
|
|
|
|
rev = "v1.2-8.8";
|
|
|
|
sha256 = "06452fyzalz7zcjjp73qb7d6xvmqb6skljkivf8pfm55fsc8s7kx";
|
2018-07-06 00:16:42 +02:00
|
|
|
};
|
2019-01-31 20:55:28 +01:00
|
|
|
|
|
|
|
"8.9" = {
|
2020-04-23 18:00:47 +02:00
|
|
|
version = "1.2.1";
|
|
|
|
rev = "v1.2.1-8.9";
|
|
|
|
sha256 = "0d8ddj6nc6p0k25cd8fs17cq427zhzbc3v9pk2wd2fnvk70nlfij";
|
2019-07-23 22:27:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
"8.10" = {
|
2020-04-23 18:00:47 +02:00
|
|
|
version = "1.2.1";
|
|
|
|
rev = "v1.2.1-8.10-2";
|
|
|
|
sha256 = "0j3z4l5nrbyi9zbbyqkc6kassjanwld2188mwmrbqspaypm2ys68";
|
|
|
|
};
|
|
|
|
|
|
|
|
"8.11" = {
|
2020-07-30 14:54:25 +02:00
|
|
|
version = "1.2.3";
|
|
|
|
rev = "v1.2.3-8.11";
|
|
|
|
sha256 = "1srxz1rws8jsh7402g2x2vcqgjbbsr64dxxj5d2zs48pmhb20csf";
|
2020-06-23 07:07:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
"8.12" = {
|
2020-07-30 14:54:25 +02:00
|
|
|
version = "1.2.3";
|
|
|
|
rev = "v1.2.3-8.12";
|
|
|
|
sha256 = "1y0jkvzyz5ssv5vby41p1i8zs7nsdc8g3pzyq73ih9jz8h252643";
|
2019-01-31 20:55:28 +01:00
|
|
|
};
|
2018-07-08 13:13:27 +02:00
|
|
|
};
|
2019-08-13 23:52:01 +02:00
|
|
|
param = params.${coq.coq-version};
|
2018-07-08 13:13:27 +02:00
|
|
|
in
|
2017-11-12 18:33:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-equations-${version}";
|
2019-09-09 01:38:31 +02:00
|
|
|
version = param.version;
|
2017-11-12 18:33:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattam82";
|
|
|
|
repo = "Coq-Equations";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = param.rev;
|
|
|
|
sha256 = param.sha256;
|
2017-11-12 18:33:40 +01:00
|
|
|
};
|
|
|
|
|
2018-10-19 10:25:09 +02:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
|
2017-11-12 18:33:40 +01:00
|
|
|
|
|
|
|
preBuild = "coq_makefile -f _CoqProject -o Makefile";
|
|
|
|
|
2019-11-05 02:10:31 +01:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2017-11-12 18:33:40 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://mattam82.github.io/Coq-Equations/";
|
2017-11-12 18:33:40 +01:00
|
|
|
description = "A plugin for Coq to add dependent pattern-matching";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2017-12-15 20:52:16 +01:00
|
|
|
passthru = {
|
2018-07-08 13:13:27 +02:00
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
2017-12-15 20:52:16 +01:00
|
|
|
};
|
|
|
|
|
2017-11-12 18:33:40 +01:00
|
|
|
}
|