2015-06-19 06:54:35 -07:00
|
|
|
{ stdenv, src, pkgconfig, tcl, libXft, fontconfig, patches ? [], ... }:
|
2009-05-03 07:36:26 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-04-26 20:55:07 -07:00
|
|
|
name = "tk-${tcl.version}";
|
2014-04-12 01:44:17 -07:00
|
|
|
|
2015-06-19 06:54:35 -07:00
|
|
|
inherit src patches;
|
2014-04-12 01:44:17 -07:00
|
|
|
|
2009-05-03 07:36:26 -07:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/wish* $out/bin/wish
|
|
|
|
'';
|
2014-04-12 01:44:17 -07:00
|
|
|
|
2015-04-30 11:42:43 -07:00
|
|
|
preConfigure = ''
|
|
|
|
cd unix
|
|
|
|
'';
|
2014-04-12 01:44:17 -07:00
|
|
|
|
2015-04-30 11:42:43 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
];
|
2009-05-03 07:36:26 -07:00
|
|
|
|
2016-06-20 01:33:44 -07:00
|
|
|
buildInputs = [ pkgconfig ]
|
2014-04-12 01:44:17 -07:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
|
|
|
|
|
2016-06-20 01:33:44 -07:00
|
|
|
propagatedBuildInputs = [ tcl libXft ];
|
|
|
|
|
2014-04-13 05:56:54 -07:00
|
|
|
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
|
|
|
|
|
2009-05-03 07:36:26 -07:00
|
|
|
inherit tcl;
|
2010-05-28 03:57:50 -07:00
|
|
|
|
2015-04-26 20:55:07 -07:00
|
|
|
passthru = rec {
|
|
|
|
inherit (tcl) release version;
|
|
|
|
libPrefix = "tk${tcl.release}";
|
|
|
|
libdir = "lib/${libPrefix}";
|
2010-05-28 03:57:50 -07:00
|
|
|
};
|
2013-06-29 15:39:32 -07:00
|
|
|
|
2015-04-30 11:42:43 -07:00
|
|
|
meta = with stdenv.lib; {
|
2013-06-29 15:39:32 -07:00
|
|
|
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/;
|
2015-04-30 11:42:43 -07:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ lovek323 wkennington ];
|
2013-06-29 15:39:32 -07:00
|
|
|
};
|
2009-05-03 07:36:26 -07:00
|
|
|
}
|