2020-01-22 07:40:33 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coq, bignums }:
|
2017-09-04 03:39:03 +01:00
|
|
|
|
2020-01-25 22:37:09 +00:00
|
|
|
let
|
|
|
|
coqVersions = {
|
|
|
|
"8.6" = "1.4.0";
|
|
|
|
"8.7" = "1.4.0";
|
|
|
|
"8.8" = "1.6.0";
|
|
|
|
"8.9" = "1.6.0";
|
2020-01-26 15:37:22 +00:00
|
|
|
"8.10" = "1.7.0";
|
2020-05-26 07:14:37 +01:00
|
|
|
"8.11" = "1.7.0";
|
2020-01-25 22:37:09 +00:00
|
|
|
};
|
|
|
|
params = {
|
|
|
|
"1.4.0" = {
|
|
|
|
version = "1.4.0";
|
|
|
|
rev = "168c6b86c7d3f87ee51791f795a8828b1521589a";
|
|
|
|
sha256 = "1d2whsgs3kcg5wgampd6yaqagcpmzhgb6a0hp6qn4lbimck5dfmm";
|
|
|
|
};
|
|
|
|
"1.6.0" = {
|
|
|
|
version = "1.6.0";
|
|
|
|
rev = "328aa06270584b578edc0d2925e773cced4f14c8";
|
|
|
|
sha256 = "07sy9kw1qlynsqy251adgi8b3hghrc9xxl2rid6c82mxfsp329sd";
|
|
|
|
};
|
2020-01-26 15:37:22 +00:00
|
|
|
"1.7.0" = {
|
|
|
|
version = "1.7.0";
|
|
|
|
rev = "08b5481ed6ea1a5d2c4c068b62156f5be6d82b40";
|
|
|
|
sha256 = "1w7fmcpf0691gcwq00lm788k4ijlwz3667zj40j5jjc8j8hj7cq3";
|
|
|
|
};
|
2020-01-25 22:37:09 +00:00
|
|
|
};
|
|
|
|
param = params.${coqVersions.${coq.coq-version}};
|
|
|
|
in
|
|
|
|
|
2017-07-19 00:05:42 +01:00
|
|
|
stdenv.mkDerivation {
|
2020-01-25 22:37:09 +00:00
|
|
|
name = "coq${coq.coq-version}-CoLoR-${param.version}";
|
2017-07-19 00:05:42 +01:00
|
|
|
|
2020-01-22 07:40:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fblanqui";
|
|
|
|
repo = "color";
|
2020-01-25 22:37:09 +00:00
|
|
|
inherit (param) rev sha256;
|
2017-07-19 00:05:42 +01:00
|
|
|
};
|
|
|
|
|
2017-12-15 19:52:16 +00:00
|
|
|
buildInputs = [ coq bignums ];
|
2017-11-12 17:37:11 +00:00
|
|
|
enableParallelBuilding = false;
|
2017-07-19 00:25:53 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
|
|
|
|
'';
|
2017-07-19 00:05:42 +01:00
|
|
|
|
2020-01-25 22:37:09 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://color.inria.fr/";
|
2017-07-19 00:05:42 +01:00
|
|
|
description = "CoLoR is a library of formal mathematical definitions and proofs of theorems on rewriting theory and termination whose correctness has been mechanically checked by the Coq proof assistant.";
|
2020-01-22 07:40:33 +00:00
|
|
|
maintainers = with maintainers; [ jpas jwiegley ];
|
2017-07-19 00:05:42 +01:00
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
2017-12-15 19:52:16 +00:00
|
|
|
|
|
|
|
passthru = {
|
2020-01-25 22:37:09 +00:00
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v coqVersions;
|
2017-12-15 19:52:16 +00:00
|
|
|
};
|
2017-07-19 00:05:42 +01:00
|
|
|
}
|