2014-04-12 12:44:17 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, tcl, libXft, fontconfig }:
|
2009-05-03 18:36:26 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-01-13 16:08:20 +04:00
|
|
|
name = "tk-8.5.15";
|
2014-04-12 12:44:17 +04:00
|
|
|
|
2009-05-03 18:36:26 +04:00
|
|
|
src = fetchurl {
|
2014-01-13 16:08:20 +04:00
|
|
|
url = "mirror://sourceforge/tcl/tk8.5.15-src.tar.gz";
|
|
|
|
sha256 = "0grj0k0hljvwiz913pafqibz18fzk9xjxf0nzqrd9zdls036fp41";
|
2009-05-03 18:36:26 +04:00
|
|
|
};
|
2014-01-25 06:36:20 +04:00
|
|
|
|
|
|
|
patches = [ ./different-prefix-with-tcl.patch ];
|
2014-04-12 12:44:17 +04:00
|
|
|
|
2009-05-03 18:36:26 +04:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/wish* $out/bin/wish
|
|
|
|
'';
|
2014-04-12 12:44:17 +04:00
|
|
|
|
2009-11-18 12:39:59 +03:00
|
|
|
configureFlags = "--with-tcl=${tcl}/lib";
|
2014-04-12 12:44:17 +04:00
|
|
|
|
2009-05-03 18:36:26 +04:00
|
|
|
preConfigure = "cd unix";
|
|
|
|
|
2014-04-12 12:44:17 +04:00
|
|
|
buildInputs = [ pkgconfig tcl libXft ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
|
|
|
|
|
2014-04-13 16:56:54 +04:00
|
|
|
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
|
|
|
|
|
2009-05-03 18:36:26 +04:00
|
|
|
inherit tcl;
|
2010-05-28 14:57:50 +04:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
libPrefix = "tk8.5";
|
|
|
|
};
|
2013-06-30 02:39:32 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A widget toolkit that provides a library of basic elements for building a GUI in many different programming languages";
|
|
|
|
homepage = http://www.tcl.tk/;
|
2014-01-13 16:08:20 +04:00
|
|
|
license = stdenv.lib.licenses.tcltk;
|
2013-06-30 03:49:55 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ lovek323 ];
|
2013-06-30 02:39:32 +04:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2009-05-03 18:36:26 +04:00
|
|
|
}
|