2019-02-11 09:04:26 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
|
|
|
let params =
|
|
|
|
{
|
|
|
|
"8.7" = {
|
|
|
|
version = "1.1.1+coq8.7";
|
|
|
|
sha256 = "1i7b5pkx46zf9il2xikbp3rhpnh3wdfbhw5yxcf9yk28ky9s0a0l";
|
|
|
|
};
|
|
|
|
"8.8" = {
|
|
|
|
version = "1.1.1";
|
|
|
|
sha256 = "0b07zvgm9cx6j2d9631zmqjs6sf30kiqg6k15xk3km7n80d53wfh";
|
|
|
|
};
|
|
|
|
"8.9" = {
|
|
|
|
version = "1.1.1+coq8.9";
|
|
|
|
sha256 = "002xabhjlph394vydw3dx8ipv5ry2nq3py4440bk9a18ljx0w6ll";
|
|
|
|
};
|
|
|
|
};
|
2019-08-13 22:52:01 +01:00
|
|
|
param = params.${coq.coq-version};
|
2019-02-11 09:04:26 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (param) version;
|
|
|
|
name = "coq${coq.coq-version}-paramcoq-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coq-community";
|
|
|
|
repo = "paramcoq";
|
|
|
|
rev = "v${version}";
|
|
|
|
inherit (param) sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq ]
|
|
|
|
++ (with coq.ocamlPackages; [ ocaml findlib camlp5 ])
|
|
|
|
;
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2019-02-11 09:04:26 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Coq plugin for parametricity";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (coq.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|