2020-11-25 06:38:14 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coq, ...}@args:
|
|
|
|
|
|
|
|
let
|
|
|
|
hashes = {
|
|
|
|
"0.9.4" = "1y66pamgsdxlq2w1338lj626ln70cwj7k53hxcp933g8fdsa4hp0";
|
|
|
|
"0.9.5" = "1b4cvz3llxin130g13calw5n1zmvi6wdd5yb8a41q7yyn2hd3msg";
|
|
|
|
"0.9.7" = "00v4bm4glv1hy08c8xsm467az6d1ashrznn8p2bmbmmp52lfg7ag";
|
|
|
|
"0.10.0" = "1kxi5bmjwi5zqlqgkyzhhxwgcih7wf60cyw9398k2qjkmi186r4a";
|
|
|
|
"0.10.1" = "0r1vspad8fb8bry3zliiz4hfj4w1iib1l2gm115a94m6zbiksd95";
|
|
|
|
"0.10.2" = "1b150rc5bmz9l518r4m3vwcrcnnkkn9q5lrwygkh0a7mckgg2k9f";
|
|
|
|
"0.10.3" = "0795gs2dlr663z826mp63c8h2zfadn541dr8q0fvnvi2z7kfyslb";
|
|
|
|
"0.11.1" = "0dmf1p9j8lm0hwaq0af18jxdwg869xi2jm8447zng7krrq3kvkg5";
|
|
|
|
"0.11.2" = "0iyka81g26x5n99xic7kqn8vxqjw8rz7vw9rs27iw04lf137vzv6";
|
2020-11-25 06:38:21 +00:00
|
|
|
"0.11.3" = "1w99nzpk72lffxis97k235axss5lmzhy5z3lga2i0si95mbpil42";
|
2018-03-21 14:00:47 +00:00
|
|
|
};
|
2020-11-25 06:38:14 +00:00
|
|
|
|
|
|
|
default-versions = {
|
|
|
|
"8.5" = "0.9.4";
|
|
|
|
"8.6" = "0.9.5";
|
|
|
|
"8.7" = "0.9.7";
|
2020-11-25 06:38:21 +00:00
|
|
|
"8.8" = "0.11.3";
|
|
|
|
"8.9" = "0.11.3";
|
|
|
|
"8.10" = "0.11.3";
|
|
|
|
"8.11" = "0.11.3";
|
|
|
|
"8.12" = "0.11.3";
|
2020-11-25 06:38:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
param = rec {
|
|
|
|
version = args.version or default-versions.${coq.coq-version};
|
|
|
|
sha256 = hashes.${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 {
|
2020-11-25 06:38:14 +00:00
|
|
|
owner = "coq-community";
|
2015-09-26 15:40:07 +01:00
|
|
|
repo = "coq-ext-lib";
|
2020-11-25 06:38:14 +00:00
|
|
|
rev = "v${version}";
|
2015-09-26 15:40:07 +01:00
|
|
|
inherit (param) sha256;
|
2014-10-11 23:24:28 +01:00
|
|
|
};
|
|
|
|
|
2020-10-02 21:16:28 +01:00
|
|
|
buildInputs = [ coq ];
|
2014-10-11 23:24:28 +01:00
|
|
|
|
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 = {
|
2020-11-25 06:38:14 +00:00
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v default-versions;
|
2018-03-21 14:00:47 +00:00
|
|
|
};
|
2014-10-11 23:24:28 +01:00
|
|
|
}
|