2019-11-07 23:04:08 +00:00
|
|
|
{stdenv, fetchFromGitHub, coq, unzip}:
|
|
|
|
|
|
|
|
let
|
|
|
|
versions = {
|
|
|
|
pre_8_6 = rec {
|
|
|
|
rev = "v${version}";
|
|
|
|
version = "1.2.8";
|
|
|
|
sha256 = "05fskx5x1qgaf9qv626m38y5izichzzqc7g2rglzrkygbskrrwsb";
|
|
|
|
};
|
|
|
|
post_8_6 = rec {
|
|
|
|
rev = "v${version}";
|
2020-10-05 20:38:41 +01:00
|
|
|
version = "4.0.2";
|
|
|
|
sha256 = "1q96bsxclqx84xn5vkid501jkwlc1p6fhb8szrlrp82zglj58b0b";
|
2019-11-07 23:04:08 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
params = {
|
|
|
|
"8.5" = versions.pre_8_6;
|
|
|
|
"8.6" = versions.post_8_6;
|
|
|
|
"8.7" = versions.post_8_6;
|
|
|
|
"8.8" = versions.post_8_6;
|
|
|
|
"8.9" = versions.post_8_6;
|
2020-02-26 11:59:34 +00:00
|
|
|
"8.10" = versions.post_8_6;
|
|
|
|
"8.11" = versions.post_8_6;
|
2020-09-04 08:09:56 +01:00
|
|
|
"8.12" = versions.post_8_6;
|
2019-11-07 23:04:08 +00:00
|
|
|
};
|
|
|
|
param = params.${coq.coq-version};
|
|
|
|
in
|
2014-10-11 23:24:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-07 23:04:08 +00:00
|
|
|
inherit (param) version;
|
2020-02-26 11:59:34 +00:00
|
|
|
name = "coq${coq.coq-version}-paco-${version}";
|
2014-10-11 23:24:28 +01:00
|
|
|
|
2019-11-07 23:04:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
owner = "snu-sf";
|
|
|
|
repo = "paco";
|
2014-10-11 23:24:28 +01:00
|
|
|
};
|
|
|
|
|
2020-10-05 20:38:41 +01:00
|
|
|
buildInputs = [ coq ];
|
2014-10-11 23:24:28 +01:00
|
|
|
|
|
|
|
preBuild = "cd src";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
|
|
|
mkdir -p $COQLIB/user-contrib/Paco
|
|
|
|
cp -pR *.vo $COQLIB/user-contrib/Paco
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://plv.mpi-sws.org/paco/";
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A Coq library implementing parameterized coinduction";
|
2019-11-07 23:04:08 +00:00
|
|
|
maintainers = with maintainers; [ jwiegley ptival ];
|
2014-10-11 23:24:28 +01:00
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-21 14:00:47 +00:00
|
|
|
passthru = {
|
2020-02-26 11:59:34 +00:00
|
|
|
compatibleCoqVersions = stdenv.lib.flip builtins.hasAttr params;
|
2018-03-21 14:00:47 +00:00
|
|
|
};
|
|
|
|
|
2014-10-11 23:24:28 +01:00
|
|
|
}
|