nixpkgs/pkgs/development/libraries/tk/default.nix

37 lines
886 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, tcl, libXft }:
stdenv.mkDerivation {
name = "tk-8.5.15";
src = fetchurl {
url = "mirror://sourceforge/tcl/tk8.5.15-src.tar.gz";
sha256 = "0grj0k0hljvwiz913pafqibz18fzk9xjxf0nzqrd9zdls036fp41";
};
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 ];
inherit tcl;
passthru = {
libPrefix = "tk8.5";
};
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;
};
}