nixpkgs/pkgs/development/libraries/tk/default.nix
Marc Weber 932899f3da Tk version number is now 8.5 but at several places TK_LIBRARY is set "${tk}/lib/tk8.4". As for Python, tk.libPrefix is introduced to match "tk8.5".
contributed by David Guibert
Signed-off-by: David Guibert <david.guibert@gmail.com>

svn path=/nixpkgs/trunk/; revision=22041
2010-05-28 10:57:50 +00:00

27 lines
468 B
Nix

{ stdenv, fetchurl, tcl, x11 }:
stdenv.mkDerivation {
name = "tk-8.5.7";
src = fetchurl {
url = "mirror://sourceforge/tcl/tk8.5.7-src.tar.gz";
sha256 = "0c5gsy3nlwl0wn9swz4k4v7phy7nzjl317gca1jykgf4jz9nwdnr";
};
postInstall = ''
ln -s $out/bin/wish* $out/bin/wish
'';
configureFlags = "--with-tcl=${tcl}/lib";
preConfigure = "cd unix";
buildInputs = [tcl x11];
inherit tcl;
passthru = {
libPrefix = "tk8.5";
};
}