diff --git a/pkgs/applications/networking/instant-messengers/tkabber/default.nix b/pkgs/applications/networking/instant-messengers/tkabber/default.nix new file mode 100644 index 000000000000..30c91d3d905b --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/tkabber/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, tcl, tk, tcllib, tcltls, bwidget, cacert, makeWrapper, x11 }: + +stdenv.mkDerivation rec { + name = "tkabber-0.11.1"; + + src = fetchurl { + url = "http://files.jabber.ru/tkabber/tkabber-0.11.1.tar.gz"; + sha256 = "19xv555cm7a2gczdalf9srxm39hmsh0fbidhwxa74a89nqkbf4lv"; + }; + + defaultTheme = "ocean-deep"; + + patchPhase = '' + substituteInPlace login.tcl --replace \ + "custom::defvar loginconf(sslcacertstore) \"\"" \ + "custom::defvar loginconf(sslcacertstore) \"${cacert}/etc/ca-bundle.crt\"" + + sed -i '/^if.*load_default_xrdb/,/^}$/ { + s@option readfile \(\[fullpath [^]]*\]\)@option readfile "'"$out/share/doc/tkabber/examples/xrdb/${defaultTheme}.xrdb"'"@ + }' tkabber.tcl + ''; + + configurePhase = '' + mkdir -p $out/bin + sed -e "s@/usr/local@$out@" -i Makefile + ''; + + postInstall = '' + wrapProgram $out/bin/tkabber --set TCLLIBPATH "${bwidget}/tcltk\ ${tcllib}/lib/tcllib${tcllib.version}\ ${tcltls}/lib/tls${tcltls.version}" + ''; + + buildInputs = [tcl tk tcllib tcltls bwidget x11 makeWrapper]; + + meta = { + homepage = "http://tkabber.jabber.ru/"; + description = "A GUI client for the XMPP (Jabber) instant messaging protocol"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed04014bf9bf..e009d590a21b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1555,6 +1555,8 @@ let time = callPackage ../tools/misc/time { }; + tkabber = callPackage ../applications/networking/instant-messengers/tkabber { }; + tm = callPackage ../tools/system/tm { }; trang = callPackage ../tools/text/xml/trang { };