2015-09-26 15:40:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
2018-03-21 14:00:47 +00:00
|
|
|
let params =
|
2016-04-12 18:43:49 +01:00
|
|
|
{
|
2020-02-14 23:49:28 +00:00
|
|
|
"8.5" = { version = "0.9.4"; sha256 = "1y66pamgsdxlq2w1338lj626ln70cwj7k53hxcp933g8fdsa4hp0"; };
|
|
|
|
"8.6" = { version = "0.9.5"; sha256 = "1b4cvz3llxin130g13calw5n1zmvi6wdd5yb8a41q7yyn2hd3msg"; };
|
|
|
|
"8.7" = { version = "0.9.7"; sha256 = "00v4bm4glv1hy08c8xsm467az6d1ashrznn8p2bmbmmp52lfg7ag"; };
|
|
|
|
"8.8" = { version = "0.11.1"; sha256 = "0dmf1p9j8lm0hwaq0af18jxdwg869xi2jm8447zng7krrq3kvkg5"; };
|
|
|
|
"8.9" = { version = "0.11.1"; sha256 = "0dmf1p9j8lm0hwaq0af18jxdwg869xi2jm8447zng7krrq3kvkg5"; };
|
|
|
|
"8.10" = { version = "0.11.1"; sha256 = "0dmf1p9j8lm0hwaq0af18jxdwg869xi2jm8447zng7krrq3kvkg5"; };
|
|
|
|
"8.11" = { version = "0.11.1"; sha256 = "0dmf1p9j8lm0hwaq0af18jxdwg869xi2jm8447zng7krrq3kvkg5"; };
|
2018-03-21 14:00:47 +00:00
|
|
|
};
|
2019-08-13 22:52:01 +01:00
|
|
|
param = params.${coq.coq-version};
|
2015-09-26 15:40:07 +01:00
|
|
|
in
|
2014-10-11 23:24:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2015-09-26 15:40:07 +01:00
|
|
|
name = "coq${coq.coq-version}-coq-ext-lib-${version}";
|
|
|
|
inherit (param) version;
|
2014-10-11 23:24:28 +01:00
|
|
|
|
2015-09-26 15:40:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coq-ext-lib";
|
|
|
|
repo = "coq-ext-lib";
|
|
|
|
rev = "v${param.version}";
|
|
|
|
inherit (param) sha256;
|
2014-10-11 23:24:28 +01:00
|
|
|
};
|
|
|
|
|
2018-10-19 09:25:09 +01:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 ];
|
2014-10-11 23:24:28 +01:00
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
2014-10-13 22:10:19 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2014-10-11 23:24:28 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/coq-ext-lib/coq-ext-lib";
|
2014-10-11 23:24:28 +01:00
|
|
|
description = "A collection of theories and plugins that may be useful in other Coq developments";
|
2019-11-08 01:38:30 +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 = {
|
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
|
|
|
};
|
2014-10-11 23:24:28 +01:00
|
|
|
}
|