3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/tk/default.nix

40 lines
1,011 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, tcl, libXft, fontconfig }:
stdenv.mkDerivation {
2015-03-29 22:01:38 +01:00
name = "tk-8.6.4";
src = fetchurl {
2015-03-29 22:01:38 +01:00
url = "mirror://sourceforge/tcl/tk8.6.4-src.tar.gz";
sha256 = "1h96vp15zl5xz0d4qp6wjyrchqmrmdm3q5k22wkw9jaxbvw9vy88";
};
2014-01-25 02:36:20 +00:00
patches = [ ./different-prefix-with-tcl.patch ];
postInstall = ''
ln -s $out/bin/wish* $out/bin/wish
'';
configureFlags = "--with-tcl=${tcl}/lib";
preConfigure = "cd unix";
buildInputs = [ pkgconfig tcl libXft ]
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
inherit tcl;
passthru = {
2015-03-29 22:01:38 +01:00
libPrefix = "tk8.6";
};
2013-06-29 23:39:32 +01: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/;
license = stdenv.lib.licenses.tcltk;
maintainers = with stdenv.lib.maintainers; [ lovek323 ];
2013-06-29 23:39:32 +01:00
platforms = stdenv.lib.platforms.all;
};
}