2022-11-21 17:40:18 +00:00
|
|
|
{ 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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "clutter";
|
|
|
|
version = "1.26.4";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1rn4cd1an6a9dfda884aqpcwcgq8dgydpqvb19nmagw4b70zlj4b";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 ];
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gobject-introspection ];
|
2022-11-21 17:40:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cogl
|
|
|
|
pango
|
|
|
|
atk
|
|
|
|
json-glib
|
|
|
|
gobject-introspection
|
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
|
|
|
libX11
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libXext
|
|
|
|
libXfixes
|
|
|
|
libXdamage
|
|
|
|
libXcomposite
|
|
|
|
libXi
|
|
|
|
libxcb
|
|
|
|
libinput
|
|
|
|
libgudev
|
|
|
|
libxkbcommon
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-introspection" # needed by muffin AFAIK
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"--without-x"
|
|
|
|
"--enable-x11-backend=no"
|
|
|
|
"--enable-quartz-backend=yes"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
#doCheck = true; # no tests possible without a display
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library for creating fast, dynamic graphical user interfaces";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Clutter is free software library for creating fast, compelling,
|
|
|
|
portable, and dynamic graphical user interfaces. It is a core part
|
|
|
|
of MeeGo, and is supported by the open source community. Its
|
|
|
|
development is sponsored by Intel.
|
|
|
|
|
|
|
|
Clutter uses OpenGL for rendering (and optionally OpenGL|ES for use
|
|
|
|
on mobile and embedded platforms), but wraps an easy to use,
|
|
|
|
efficient, flexible API around GL's complexity.
|
|
|
|
|
|
|
|
Clutter enforces no particular user interface style, but provides a
|
|
|
|
rich, generic foundation for higher-level toolkits tailored to
|
|
|
|
specific needs.
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.clutter-project.org/";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2022-11-21 17:40:18 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|