2021-06-28 23:13:55 +00:00
|
|
|
{ lib, fetchurl, tcl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
tcl.mkTclDerivation rec {
|
2022-03-05 16:20:37 +00:00
|
|
|
pname = "tclx";
|
|
|
|
version = "8.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-05 16:20:37 +00:00
|
|
|
url = "mirror://sourceforge/tclx/tclx${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1v2qwzzidz0is58fd1p7wfdbscxm3ip2wlbqkj5jdhf6drh1zd59";
|
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# required in order for tclx to properly detect tclx.tcl at runtime
|
2022-03-05 16:20:37 +00:00
|
|
|
postInstall = let
|
|
|
|
majorMinorVersion = lib.versions.majorMinor version;
|
|
|
|
in ''
|
|
|
|
ln -s $prefix/lib/tclx${majorMinorVersion} $prefix/lib/tclx${majorMinorVersion}/tclx${majorMinorVersion}
|
2021-06-28 23:13:55 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://tclx.sourceforge.net/";
|
|
|
|
description = "Tcl extensions";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.tcltk;
|
|
|
|
maintainers = with lib.maintainers; [ kovirobi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|