From e193a4f8987e2ffeb4c65fd39ede34082dd199df Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 13 Jul 2013 16:01:06 -0400 Subject: [PATCH] Fix gtk2 build libintlOrEmpty is [], not null, when libintl isn't needed Signed-off-by: Shea Levy --- pkgs/development/libraries/gtk+/2.x.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gtk+/2.x.nix b/pkgs/development/libraries/gtk+/2.x.nix index 6b889f76ca5..8c6e76726af 100644 --- a/pkgs/development/libraries/gtk+/2.x.nix +++ b/pkgs/development/libraries/gtk+/2.x.nix @@ -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 ];