gtk++: fix build on darwin

* add -lintl to CFLAGS
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-04 14:54:57 +10:00 committed by Rok Garbas
parent 8c54b95273
commit 7573056652
1 changed files with 7 additions and 9 deletions

View File

@ -17,7 +17,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-I${cairo}/include/cairo";
NIX_CFLAGS_COMPILE = "-I${cairo}/include/cairo"
+ stdenv.lib.optionalString (libintlOrEmpty != null) " -lintl";
nativeBuildInputs = [ perl pkgconfig gettext ];
@ -34,8 +35,12 @@ stdenv.mkDerivation rec {
postInstall = "rm -rf $out/share/gtk-doc";
meta = {
meta = with stdenv.lib; {
description = "A multi-platform toolkit for creating graphical user interfaces";
homepage = http://www.gtk.org/;
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ lovek323 raskin ];
platforms = platforms.all;
longDescription = ''
GTK+ is a highly usable, feature rich toolkit for creating
@ -47,12 +52,5 @@ stdenv.mkDerivation rec {
proprietary software with GTK+ without any license fees or
royalties.
'';
homepage = http://www.gtk.org/;
license = "LGPLv2+";
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.all;
};
}