nixpkgs/pkgs/development/libraries/tclx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
707 B
Nix
Raw Normal View History

2021-04-30 22:49:16 +00:00
{ lib, fetchurl, tcl }:
2016-07-16 19:51:15 +00:00
2021-04-30 22:49:16 +00:00
tcl.mkTclDerivation rec {
2022-02-21 21:17:57 +00:00
pname = "tclx";
version = "8.4.1";
2016-07-16 19:51:15 +00:00
src = fetchurl {
2022-02-21 21:17:57 +00:00
url = "mirror://sourceforge/tclx/tclx${version}.tar.bz2";
2016-07-16 19:51:15 +00:00
sha256 = "1v2qwzzidz0is58fd1p7wfdbscxm3ip2wlbqkj5jdhf6drh1zd59";
};
2021-04-30 22:49:16 +00:00
# required in order for tclx to properly detect tclx.tcl at runtime
2022-02-21 21:17:57 +00:00
postInstall = let
majorMinorVersion = lib.versions.majorMinor version;
in ''
ln -s $prefix/lib/tclx${majorMinorVersion} $prefix/lib/tclx${majorMinorVersion}/tclx${majorMinorVersion}
'';
2016-07-16 19:51:15 +00:00
meta = {
homepage = "http://tclx.sourceforge.net/";
2016-07-16 19:51:15 +00:00
description = "Tcl extensions";
license = lib.licenses.tcltk;
maintainers = with lib.maintainers; [ kovirobi ];
2016-07-16 19:51:15 +00:00
};
}