2020-08-28 23:05:46 +02:00
|
|
|
{ lib, mkCoqDerivation, coq, version ? null }:
|
2018-05-15 22:48:20 +02:00
|
|
|
|
2020-08-28 23:05:46 +02:00
|
|
|
with lib; mkCoqDerivation rec {
|
|
|
|
pname = "stdpp";
|
|
|
|
inherit version;
|
|
|
|
domain = "gitlab.mpi-sws.org";
|
|
|
|
owner = "iris";
|
2021-04-05 15:17:16 +02:00
|
|
|
defaultVersion = with versions; switch coq.coq-version [
|
2022-06-03 13:33:03 +02:00
|
|
|
{ case = range "8.13" "8.16"; out = "1.7.0"; }
|
2022-02-17 06:47:03 +01:00
|
|
|
{ case = range "8.12" "8.14"; out = "1.6.0"; }
|
2021-09-27 21:52:40 +02:00
|
|
|
{ case = range "8.11" "8.13"; out = "1.5.0"; }
|
|
|
|
{ case = range "8.8" "8.10"; out = "1.4.0"; }
|
2021-04-05 15:17:16 +02:00
|
|
|
] null;
|
2022-02-17 06:47:03 +01:00
|
|
|
release."1.7.0".sha256 = "sha256:0447wbzm23f9rl8byqf6vglasfn6c1wy6cxrrwagqjwsh3i5lx8y";
|
2021-11-14 12:21:54 +01:00
|
|
|
release."1.6.0".sha256 = "1l1w6srzydjg0h3f4krrfgvz455h56shyy2lbcnwdbzjkahibl7v";
|
2021-04-05 15:17:16 +02:00
|
|
|
release."1.5.0".sha256 = "1ym0fy620imah89p8b6rii8clx2vmnwcrbwxl3630h24k42092nf";
|
2020-08-28 23:05:46 +02:00
|
|
|
release."1.4.0".sha256 = "1m6c7ibwc99jd4cv14v3r327spnfvdf3x2mnq51f9rz99rffk68r";
|
|
|
|
releaseRev = v: "coq-stdpp-${v}";
|
2018-05-15 22:48:20 +02:00
|
|
|
|
2021-11-14 12:21:54 +01:00
|
|
|
preBuild = ''
|
|
|
|
if [[ -f coq-lint.sh ]]
|
|
|
|
then patchShebangs coq-lint.sh
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
2018-05-15 22:48:20 +02:00
|
|
|
meta = {
|
|
|
|
description = "An extended “Standard Library” for Coq";
|
2020-08-28 23:05:46 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2018-05-15 22:48:20 +02:00
|
|
|
};
|
|
|
|
}
|