2019-11-08 00:04:08 +01: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}";
|
|
|
|
version = "4.0.0";
|
|
|
|
sha256 = "1ncrdyijkgf0s2q4rg1s9r2nrcb17gq3jz63iqdlyjq3ylv8gyx0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
param = params.${coq.coq-version};
|
|
|
|
in
|
2014-10-12 00:24:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-08 00:04:08 +01:00
|
|
|
inherit (param) version;
|
2014-10-12 00:24:28 +02:00
|
|
|
name = "coq-paco-${coq.coq-version}-${version}";
|
|
|
|
|
2019-11-08 00:04:08 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
owner = "snu-sf";
|
|
|
|
repo = "paco";
|
2014-10-12 00:24:28 +02:00
|
|
|
};
|
|
|
|
|
2018-10-19 10:25:09 +02:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 unzip ];
|
2014-10-12 00:24:28 +02:00
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
|
|
|
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; {
|
|
|
|
homepage = http://plv.mpi-sws.org/paco/;
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A Coq library implementing parameterized coinduction";
|
2019-11-08 00:04:08 +01:00
|
|
|
maintainers = with maintainers; [ jwiegley ptival ];
|
2014-10-12 00:24:28 +02:00
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-21 15:00:47 +01:00
|
|
|
passthru = {
|
2019-11-08 00:04:08 +01:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" ];
|
2018-03-21 15:00:47 +01:00
|
|
|
};
|
|
|
|
|
2014-10-12 00:24:28 +02:00
|
|
|
}
|