diff --git a/pkgs/development/libraries/gtk+/2.x.nix b/pkgs/development/libraries/gtk+/2.x.nix index da64fe1fe247..c8224fa18e6d 100644 --- a/pkgs/development/libraries/gtk+/2.x.nix +++ b/pkgs/development/libraries/gtk+/2.x.nix @@ -19,11 +19,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ perl pkgconfig ]; - propagatedBuildInputs = - [ xlibs.xlibs glib atk pango gdk_pixbuf cairo - xlibs.libXrandr xlibs.libXrender xlibs.libXcomposite xlibs.libXi + propagatedBuildInputs = with xlibs; + [ glib cairo pango gdk_pixbuf atk + libXrandr libXrender libXcomposite libXi libXcursor ] - ++ stdenv.lib.optional xineramaSupport xlibs.libXinerama + ++ stdenv.lib.optional xineramaSupport libXinerama ++ stdenv.lib.optionals cupsSupport [ cups ]; configureFlags = "--with-xinput=yes"; diff --git a/pkgs/development/libraries/gtk+/3-default.nix b/pkgs/development/libraries/gtk+/3-default.nix index d37a814c5497..1b296e2c3985 100644 --- a/pkgs/development/libraries/gtk+/3-default.nix +++ b/pkgs/development/libraries/gtk+/3-default.nix @@ -20,8 +20,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; propagatedBuildInputs = with xlibs; [ expat glib cairo pango gdk_pixbuf atk at_spi2_atk - libXrandr libXrender libXcomposite libXi - ] ++ stdenv.lib.optional xineramaSupport xlibs.libXinerama + libXrandr libXrender libXcomposite libXi libXcursor + ] ++ stdenv.lib.optional xineramaSupport libXinerama ++ stdenv.lib.optionals cupsSupport [ cups ]; postInstall = "rm -rf $out/share/gtk-doc";