nixpkgs-suyu/pkgs/development/libraries/tk/generic.nix

41 lines
954 B
Nix
Raw Normal View History

2015-06-19 15:54:35 +02:00
{ stdenv, src, pkgconfig, tcl, libXft, fontconfig, patches ? [], ... }:
stdenv.mkDerivation {
name = "tk-${tcl.version}";
2015-06-19 15:54:35 +02:00
inherit src patches;
postInstall = ''
ln -s $out/bin/wish* $out/bin/wish
'';
2015-04-30 20:42:43 +02:00
preConfigure = ''
cd unix
'';
2015-04-30 20:42:43 +02:00
configureFlags = [
"--with-tcl=${tcl}/lib"
];
buildInputs = [ pkgconfig tcl libXft ]
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
inherit tcl;
passthru = rec {
inherit (tcl) release version;
libPrefix = "tk${tcl.release}";
libdir = "lib/${libPrefix}";
};
2013-06-30 00:39:32 +02:00
2015-04-30 20:42:43 +02:00
meta = with stdenv.lib; {
2013-06-30 00:39:32 +02: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 20:42:43 +02:00
license = licenses.tcltk;
platforms = platforms.all;
maintainers = with maintainers; [ lovek323 wkennington ];
2013-06-30 00:39:32 +02:00
};
}