2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, 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";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "8.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flightaware";
|
|
|
|
repo = "tclx";
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-bzLF6qOF9o24joWnGR7B4S+Doj7zv9iTh/mo50iFbUs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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 = {
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/flightaware/tclx";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tcl extensions";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.tcltk;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with lib.maintainers; [ kovirobi fgaz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|