2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchzip
|
|
|
|
, tcl
|
|
|
|
, critcl
|
|
|
|
, withCritcl ? true
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
tcl.mkTclDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tcllib";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "mirror://sourceforge/tcllib/tcllib-${version}.tar.gz";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-p8thpRpC+9k/LvbBFaSOIpDXuhMlEWhs0qbrjtKcTzQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = lib.optional withCritcl critcl;
|
|
|
|
|
|
|
|
buildFlags = [ "all" ] ++ lib.optional withCritcl "critcl";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://core.tcl-lang.org/tcllib/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tcl-only library of standard routines for Tcl";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.tcltk;
|
|
|
|
platforms = lib.platforms.unix;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ fgaz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|