mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
clutter: fix build on darwin
This commit is contained in:
parent
fb2032f86c
commit
51e07dffd0
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user