Fix gtk2 build

libintlOrEmpty is [], not null, when libintl isn't needed

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-13 16:01:06 -04:00
parent 3b274caaac
commit e193a4f898

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-I${cairo}/include/cairo"
+ stdenv.lib.optionalString (libintlOrEmpty != null) " -lintl";
+ stdenv.lib.optionalString (libintlOrEmpty != []) " -lintl";
nativeBuildInputs = [ perl pkgconfig gettext ];