gtk3: fix on Darwin

This commit is contained in:
Spencer Whitt 2015-05-22 20:08:22 -04:00
parent 3d60104a74
commit ffcea6546d

View File

@ -25,12 +25,13 @@ stdenv.mkDerivation rec {
buildInputs = [ libxkbcommon epoxy ]; buildInputs = [ libxkbcommon epoxy ];
propagatedBuildInputs = with xlibs; with stdenv.lib; propagatedBuildInputs = with xlibs; with stdenv.lib;
[ expat glib cairo pango gdk_pixbuf atk at_spi2_atk ] [ expat glib cairo pango gdk_pixbuf atk at_spi2_atk libXrandr libXrender libXcomposite libXi libXcursor ]
++ optionals stdenv.isLinux [ libXrandr libXrender libXcomposite libXi libXcursor wayland ] ++ optionals stdenv.isLinux [ wayland ]
++ optional stdenv.isDarwin x11
++ optional xineramaSupport libXinerama ++ optional xineramaSupport libXinerama
++ optional cupsSupport cups; ++ optional cupsSupport cups;
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
# demos fail to install, no idea where's the problem # demos fail to install, no idea where's the problem
preConfigure = "sed '/^SRC_SUBDIRS /s/demos//' -i Makefile.in"; preConfigure = "sed '/^SRC_SUBDIRS /s/demos//' -i Makefile.in";
@ -64,6 +65,6 @@ stdenv.mkDerivation rec {
license = stdenv.lib.licenses.lgpl2Plus; license = stdenv.lib.licenses.lgpl2Plus;
maintainers = with stdenv.lib.maintainers; [ urkud raskin vcunat lethalman ]; maintainers = with stdenv.lib.maintainers; [ urkud raskin vcunat lethalman ];
platforms = stdenv.lib.platforms.linux; # Temporary until fixed for darwin platforms = stdenv.lib.platforms.all;
}; };
} }