2021-01-09 10:05:03 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, version ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
(mkCoqDerivation {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "tlc";
|
|
|
|
owner = "charguer";
|
|
|
|
inherit version;
|
|
|
|
displayVersion = { tlc = false; };
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch coq.coq-version [
|
2022-06-16 17:23:12 +00:00
|
|
|
{ case = range "8.13" "8.16"; out = "20211215"; }
|
2021-04-26 19:14:03 +00:00
|
|
|
{ case = range "8.12" "8.13"; out = "20210316"; }
|
2021-01-09 10:05:03 +00:00
|
|
|
{ case = range "8.10" "8.12"; out = "20200328"; }
|
|
|
|
{ case = range "8.6" "8.12"; out = "20181116"; }
|
|
|
|
] null;
|
2022-04-27 09:35:20 +00:00
|
|
|
release."20211215".sha256 = "sha256:0m4d4jhdcyq8p2gpz9j3nd6jqzmz2bjmbpc0q06b38b8i550mamp";
|
2021-04-26 19:14:03 +00:00
|
|
|
release."20210316".sha256 = "1hlavnx20lxpf2iydbbxqmim9p8wdwv4phzp9ypij93yivih0g4a";
|
2021-01-09 10:05:03 +00:00
|
|
|
release."20200328".sha256 = "16vzild9gni8zhgb3qhmka47f8zagdh03k6nssif7drpim8233lx";
|
|
|
|
release."20181116".sha256 = "032lrbkxqm9d3fhf6nv1kq2z0mqd3czv3ijlbsjwnfh12xck4vpl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.chargueraud.org/softs/tlc/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Non-constructive library for Coq";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.free;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-04-26 19:14:03 +00:00
|
|
|
}).overrideAttrs (x:
|
2023-07-15 17:15:38 +00:00
|
|
|
lib.optionalAttrs (lib.versionOlder x.version "20210316") {
|
2021-04-26 19:14:03 +00:00
|
|
|
installFlags = [ "CONTRIB=$(out)/lib/coq/${coq.coq-version}/user-contrib" ];
|
|
|
|
}
|
|
|
|
)
|