2015-09-26 17:40:07 +03:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
2018-03-21 17:00:47 +03:00
|
|
|
let params =
|
2016-04-12 20:43:49 +03:00
|
|
|
{
|
2017-01-14 17:36:02 +03:00
|
|
|
"8.5" = { version = "0.9.4"; sha256 = "1y66pamgsdxlq2w1338lj626ln70cwj7k53hxcp933g8fdsa4hp0"; };
|
|
|
|
"8.6" = { version = "0.9.5"; sha256 = "1b4cvz3llxin130g13calw5n1zmvi6wdd5yb8a41q7yyn2hd3msg"; };
|
2018-08-08 14:23:53 +03:00
|
|
|
"8.7" = { version = "0.9.7"; sha256 = "00v4bm4glv1hy08c8xsm467az6d1ashrznn8p2bmbmmp52lfg7ag"; };
|
|
|
|
"8.8" = { version = "0.9.8"; sha256 = "0z1ix855kdjl7zw5ca664h5njd1x8mmvf5wi37fck4dj9dgamwlz"; };
|
2018-12-03 17:08:13 +03:00
|
|
|
"8.9" = { version = "0.10.0"; sha256 = "1kxi5bmjwi5zqlqgkyzhhxwgcih7wf60cyw9398k2qjkmi186r4a"; };
|
2018-03-21 17:00:47 +03:00
|
|
|
};
|
|
|
|
param = params."${coq.coq-version}";
|
2015-09-26 17:40:07 +03:00
|
|
|
in
|
2014-10-12 02:24:28 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2015-09-26 17:40:07 +03:00
|
|
|
name = "coq${coq.coq-version}-coq-ext-lib-${version}";
|
|
|
|
inherit (param) version;
|
2014-10-12 02:24:28 +04:00
|
|
|
|
2015-09-26 17:40:07 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coq-ext-lib";
|
|
|
|
repo = "coq-ext-lib";
|
|
|
|
rev = "v${param.version}";
|
|
|
|
inherit (param) sha256;
|
2014-10-12 02:24:28 +04:00
|
|
|
};
|
|
|
|
|
2018-10-19 11:25:09 +03:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 ];
|
2014-10-12 02:24:28 +04:00
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
2014-10-14 01:10:19 +04:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
2014-10-12 02:24:28 +04:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/coq-ext-lib/coq-ext-lib;
|
|
|
|
description = "A collection of theories and plugins that may be useful in other Coq developments";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-21 17:00:47 +03:00
|
|
|
passthru = {
|
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
|
|
|
};
|
2014-10-12 02:24:28 +04:00
|
|
|
}
|