mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Gtk : Enable wayland support on Linux
This commit is contained in:
parent
c4b346a539
commit
d756aee6f6
@ -1,6 +1,7 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gettext, perl
|
||||
, expat, glib, cairo, pango, gdk_pixbuf, atk, at_spi2_atk, gobjectIntrospection
|
||||
, xorg, wayland, epoxy, json_glib, libxkbcommon, gmp
|
||||
, xorg, epoxy, json_glib, libxkbcommon, gmp
|
||||
, waylandSupport ? stdenv.isLinux, wayland, wayland-protocols
|
||||
, xineramaSupport ? stdenv.isLinux
|
||||
, cupsSupport ? stdenv.isLinux, cups ? null
|
||||
, darwin
|
||||
@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||
propagatedBuildInputs = with xorg; with stdenv.lib;
|
||||
[ expat glib cairo pango gdk_pixbuf atk at_spi2_atk
|
||||
libXrandr libXrender libXcomposite libXi libXcursor libSM libICE ]
|
||||
++ optionals stdenv.isLinux [ wayland ]
|
||||
++ optionals waylandSupport [ wayland wayland-protocols ]
|
||||
++ optional stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit Cocoa ])
|
||||
++ optional xineramaSupport libXinerama
|
||||
++ optional cupsSupport cups;
|
||||
@ -53,6 +54,10 @@ stdenv.mkDerivation rec {
|
||||
"--disable-glibtest"
|
||||
"--with-gdktarget=quartz"
|
||||
"--enable-quartz-backend"
|
||||
] ++ optional stdenv.isLinux [
|
||||
"--enable-x11-backend"
|
||||
] ++ optional waylandSupport [
|
||||
"--enable-wayland-backend"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user