2018-02-25 03:23:58 +01:00
|
|
|
{ stdenv, intltool, fetchurl, wrapGAppsHook, gnome-video-effects, libcanberra-gtk3
|
|
|
|
, pkgconfig, gtk3, glib, clutter-gtk, clutter-gst, udev, gst_all_1, itstool
|
2017-12-02 03:58:44 +01:00
|
|
|
, libgudev, autoreconfHook, vala, docbook_xml_dtd_43, docbook_xsl, appstream-glib
|
2018-02-25 03:23:58 +01:00
|
|
|
, libxslt, yelp-tools, gnome-common, gtk-doc
|
2019-05-22 13:03:39 +02:00
|
|
|
, adwaita-icon-theme, librsvg, totem, gdk-pixbuf, gnome3, gnome-desktop, libxml2 }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cheese";
|
2019-04-13 14:37:56 +02:00
|
|
|
version = "3.32.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnome/sources/cheese/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-04-13 14:37:56 +02:00
|
|
|
sha256 = "1xlmsm4zsx05ahvpd4mgy1hfhxbag0r5i6p63bksjxdligdd36kv";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "cheese"; attrPath = "gnome3.cheese"; };
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-02 03:25:39 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig intltool itstool vala wrapGAppsHook libxml2 appstream-glib
|
2017-12-02 03:58:44 +01:00
|
|
|
libxslt docbook_xml_dtd_43 docbook_xsl
|
2018-02-25 03:23:58 +01:00
|
|
|
autoreconfHook gtk-doc yelp-tools gnome-common
|
2017-12-02 03:25:39 +01:00
|
|
|
];
|
|
|
|
buildInputs = [ gtk3 glib gnome-video-effects
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf adwaita-icon-theme librsvg udev gst_all_1.gstreamer
|
2018-02-25 03:23:58 +01:00
|
|
|
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gnome-desktop
|
|
|
|
gst_all_1.gst-plugins-bad clutter-gtk clutter-gst
|
|
|
|
libcanberra-gtk3 libgudev ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-02 04:02:10 +01:00
|
|
|
outputs = [ "out" "man" "devdoc" ];
|
2017-12-02 03:58:44 +01:00
|
|
|
|
|
|
|
patches = [
|
2018-02-25 03:23:58 +01:00
|
|
|
gtk-doc.respect_xml_catalog_files_var_patch
|
2017-12-02 03:58:44 +01:00
|
|
|
];
|
|
|
|
|
2017-12-02 03:26:06 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Effects
|
|
|
|
--prefix XDG_DATA_DIRS : "${gnome-video-effects}/share"
|
2017-12-02 04:53:34 +01:00
|
|
|
# vp8enc preset
|
|
|
|
--prefix GST_PRESET_PATH : "${gst_all_1.gst-plugins-good}/share/gstreamer-1.0/presets"
|
2017-12-02 06:56:33 +01:00
|
|
|
# Thumbnailers
|
2019-05-22 13:03:39 +02:00
|
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
2017-12-02 06:56:33 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${totem}/share"
|
2017-12-02 03:26:06 +01:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Cheese;
|
|
|
|
description = "Take photos and videos with your webcam, with fun graphical effects";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|