nixpkgs/pkgs/development/coq-modules/paramcoq/default.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

2019-02-11 10:04:26 +01:00
{ stdenv, fetchFromGitHub, coq }:
let params =
{
"8.7" = {
2020-03-27 18:15:11 +01:00
sha256 = "09n0ky7ldb24by7yf5j3hv410h85x50ksilf7qacl7xglj4gy5hj";
buildInputs = [ coq.ocamlPackages.camlp5 ];
2019-02-11 10:04:26 +01:00
};
"8.8" = {
2020-03-27 18:15:11 +01:00
sha256 = "0rc4lshqvnfdsph98gnscvpmlirs9wx91qcvffggg73xw0p1g9s0";
buildInputs = [ coq.ocamlPackages.camlp5 ];
2019-02-11 10:04:26 +01:00
};
"8.9" = {
2020-03-27 18:15:11 +01:00
sha256 = "1jjzgpff09xjn9kgp7w69r096jkj0x2ksng3pawrmhmn7clwivbk";
buildInputs = [ coq.ocamlPackages.camlp5 ];
};
"8.10" = {
sha256 = "1lq1mw15w4yky79qg3rm0mpzqi2ir51b6ak04ismrdr7ixky49y8";
};
"8.11" = {
sha256 = "09c6813988nvq4fpa45s33k70plnhxsblhm7cxxkg0i37mhvigsa";
2019-02-11 10:04:26 +01:00
};
};
2019-08-13 23:52:01 +02:00
param = params.${coq.coq-version};
2019-02-11 10:04:26 +01:00
in
stdenv.mkDerivation rec {
2020-03-27 18:15:11 +01:00
version = "1.1.2";
2019-02-11 10:04:26 +01:00
name = "coq${coq.coq-version}-paramcoq-${version}";
src = fetchFromGitHub {
owner = "coq-community";
repo = "paramcoq";
2020-03-27 18:15:11 +01:00
rev = "v${version}+coq${coq.coq-version}";
2019-02-11 10:04:26 +01:00
inherit (param) sha256;
};
buildInputs = [ coq ]
2020-03-27 18:15:11 +01:00
++ (with coq.ocamlPackages; [ ocaml findlib ])
++ (param.buildInputs or [])
2019-02-11 10:04:26 +01:00
;
2019-11-05 02:10:31 +01:00
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
2019-02-11 10:04:26 +01: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;
};
}