2023-03-25 22:04:04 +00:00
|
|
|
{ fetchurl, fetchpatch, lib, stdenv, pkg-config, clutter, gtk3, glib, cogl, gnome, gdk-pixbuf, gobject-introspection }:
|
2014-02-19 22:21:19 +00:00
|
|
|
|
2020-01-16 15:10:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:36:59 +00:00
|
|
|
pname = "clutter-gst";
|
2019-02-22 01:04:21 +00:00
|
|
|
version = "3.0.27";
|
2020-01-16 15:10:26 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2014-02-19 22:21:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-02-22 01:04:21 +00:00
|
|
|
sha256 = "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy";
|
2014-02-19 22:21:19 +00:00
|
|
|
};
|
|
|
|
|
2022-12-20 09:43:38 +00:00
|
|
|
patches = [
|
|
|
|
# Add patch from Arch Linux to fix corrupted display with Cheese
|
|
|
|
# https://gitlab.gnome.org/GNOME/cheese/-/issues/51
|
|
|
|
# https://github.com/archlinux/svntogit-packages/tree/packages/clutter-gst/trunk
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/archlinux/svntogit-packages/raw/c4dd0bbda35aa603ee790676f6e15541f71b6d36/trunk/0001-video-sink-Remove-RGBx-BGRx-support.patch";
|
|
|
|
sha256 = "sha256-k1fCiM/u7q81UrDYgbqhN/C+q9DVQ+qOyq6vmA3hbSQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-03-25 22:04:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ pkg-config glib gobject-introspection ];
|
2019-05-22 11:03:39 +00:00
|
|
|
propagatedBuildInputs = [ clutter gtk3 glib cogl gdk-pixbuf ];
|
2014-02-19 22:21:19 +00:00
|
|
|
|
|
|
|
postBuild = "rm -rf $out/share/gtk-doc";
|
|
|
|
|
2018-03-03 01:36:59 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 01:36:59 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-03 01:36:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-02-19 22:21:19 +00:00
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "GStreamer bindings for clutter";
|
2014-02-19 22:21:19 +00:00
|
|
|
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.clutter-project.org/";
|
2014-02-19 22:21:19 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2014-02-19 22:21:19 +00:00
|
|
|
|
2021-05-07 13:35:21 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2022-10-31 23:34:55 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2014-02-19 22:21:19 +00:00
|
|
|
};
|
|
|
|
}
|