mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:25:38 +00:00
086d6c802b
They add the -lfontconfig explicitly in macports, so hopefully it fixes it. https://trac.macports.org/browser/trunk/dports/x11/tk/Portfile
40 lines
1,013 B
Nix
40 lines
1,013 B
Nix
{ stdenv, fetchurl, pkgconfig, tcl, libXft, fontconfig }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "tk-8.5.15";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/tcl/tk8.5.15-src.tar.gz";
|
|
sha256 = "0grj0k0hljvwiz913pafqibz18fzk9xjxf0nzqrd9zdls036fp41";
|
|
};
|
|
|
|
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 = {
|
|
libPrefix = "tk8.5";
|
|
};
|
|
|
|
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 ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|