diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-11-01 00:34:41 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-11-01 00:34:41 +0100 |
commit | 51e07dffd0dd320135b42cb697916541cc9c1829 (patch) | |
tree | 8a56e6e7005a5bb9721cbd1291975d85b73addcf /pkgs/development/libraries/clutter | |
parent | fb2032f86c6b1b80d50a5f73c298e79e925588dc (diff) |
clutter: fix build on darwin
Diffstat (limited to 'pkgs/development/libraries/clutter')
-rw-r--r-- | pkgs/development/libraries/clutter/default.nix | 60 |
1 files changed, 51 insertions, 9 deletions
diff --git a/pkgs/development/libraries/clutter/default.nix b/pkgs/development/libraries/clutter/default.nix index 2bf1162fe1922..80c4187c951c5 100644 --- a/pkgs/development/libraries/clutter/default.nix +++ b/pkgs/development/libraries/clutter/default.nix @@ -1,6 +1,26 @@ -{ lib, stdenv, fetchurl, pkg-config, libGLU, libGL, libX11, libXext, libXfixes -, libXdamage, libXcomposite, libXi, libxcb, cogl, pango, atk, json-glib -, gobject-introspection, gtk3, gnome, libinput, libgudev, libxkbcommon +{ lib +, stdenv +, fetchurl +, pkg-config +, libGLU +, libGL +, libX11 +, libXext +, libXfixes +, libXdamage +, libXcomposite +, libXi +, libxcb +, cogl +, pango +, atk +, json-glib +, gobject-introspection +, gtk3 +, gnome +, libinput +, libgudev +, libxkbcommon }: let @@ -19,12 +39,34 @@ stdenv.mkDerivation rec { buildInputs = [ gtk3 ]; nativeBuildInputs = [ pkg-config gobject-introspection ]; - propagatedBuildInputs = - [ libX11 libGL libGLU libXext libXfixes libXdamage libXcomposite libXi cogl pango - atk json-glib gobject-introspection libxcb libinput libgudev libxkbcommon - ]; + propagatedBuildInputs = [ + cogl + pango + atk + json-glib + gobject-introspection + ] ++ lib.optionals (!stdenv.isDarwin) [ + libX11 + libGL + libGLU + libXext + libXfixes + libXdamage + libXcomposite + libXi + libxcb + libinput + libgudev + libxkbcommon + ]; - configureFlags = [ "--enable-introspection" ]; # needed by muffin AFAIK + configureFlags = [ + "--enable-introspection" # needed by muffin AFAIK + ] ++ lib.optionals stdenv.isDarwin [ + "--without-x" + "--enable-x11-backend=no" + "--enable-quartz-backend=yes" + ]; #doCheck = true; # no tests possible without a display @@ -57,6 +99,6 @@ stdenv.mkDerivation rec { homepage = "http://www.clutter-project.org/"; maintainers = with lib.maintainers; [ ]; - platforms = lib.platforms.mesaPlatforms; + platforms = lib.platforms.unix; }; } |