From febab15b01fc2ed68e688e3819941a2c62091d8a Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Tue, 27 Dec 2016 08:45:37 +0100 Subject: gtk2: Enable xinput for Darwin --- pkgs/development/libraries/gtk+/2.x.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/libraries/gtk+/2.x.nix b/pkgs/development/libraries/gtk+/2.x.nix index 91407e556c05..ba12b4eea93b 100644 --- a/pkgs/development/libraries/gtk+/2.x.nix +++ b/pkgs/development/libraries/gtk+/2.x.nix @@ -38,9 +38,13 @@ stdenv.mkDerivation rec { ++ optional xineramaSupport libXinerama ++ optionals cupsSupport [ cups ]; - configureFlags = if stdenv.isDarwin - then "--disable-glibtest --disable-introspection --disable-visibility" - else "--with-xinput=yes"; + configureFlags = [ + "--with-xinput=yes" + ] ++ stdenv.lib.optionals stdenv.isDarwin [ + "--disable-glibtest" + "--disable-introspection" + "--disable-visibility" + ]; postInstall = '' moveToOutput share/gtk-2.0/demo "$devdoc" -- cgit 1.4.1