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-03-05 13:56:55 +01:00
|
|
|
version = "1.2beta2";
|
|
|
|
rev = "v1.2-beta2-8.8";
|
|
|
|
sha256 = "1v9asdlhhks25ngnjn4dafx7nrcc5p0lhriqckh3y79nxbgpq4lx";
|
2018-07-06 00:16:42 +02:00
|
|
|
};
|
2019-01-31 20:55:28 +01:00
|
|
|
|
|
|
|
"8.9" = {
|
2019-03-05 13:56:55 +01:00
|
|
|
version = "1.2beta2";
|
|
|
|
rev = "v1.2-beta2-8.9";
|
|
|
|
sha256 = "0y2zwv7jxs1crprj5qvg46h0v9wyfn99ln40yskq91y9h1lj5h3j";
|
2019-01-31 20:55:28 +01:00
|
|
|
};
|
2018-07-08 13:13:27 +02:00
|
|
|
};
|
2019-02-01 16:59:45 +01: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}";
|
|
|
|
version = "${param.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattam82";
|
|
|
|
repo = "Coq-Equations";
|
|
|
|
rev = "${param.rev}";
|
|
|
|
sha256 = "${param.sha256}";
|
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://mattam82.github.io/Coq-Equations/;
|
|
|
|
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
|
|
|
}
|