Files
nixpkgs/pkgs/by-name/cl/clutter-gst/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

77 lines
1.6 KiB
Nix

{
fetchurl,
fetchpatch,
lib,
stdenv,
pkg-config,
clutter,
gtk3,
glib,
cogl,
gnome,
gdk-pixbuf,
gobject-introspection,
gst_all_1,
}:
stdenv.mkDerivation rec {
pname = "clutter-gst";
version = "3.0.27";
outputs = [
"out"
"dev"
];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "17czmpl92dzi4h3rn5rishk015yi3jwiw29zv8qan94xcmnbssgy";
};
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=";
})
];
strictDeps = true;
nativeBuildInputs = [
pkg-config
glib
gobject-introspection
];
propagatedBuildInputs = [
clutter
gtk3
glib
cogl
gdk-pixbuf
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
];
postBuild = "rm -rf $out/share/gtk-doc";
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
meta = {
description = "GStreamer bindings for clutter";
homepage = "http://www.clutter-project.org/";
license = lib.licenses.lgpl2Plus;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}