2019-09-02 19:44:19 +03:00
|
|
|
{ stdenv, gettext, fetchurl, wrapGAppsHook, gnome-video-effects, libcanberra-gtk3
|
2018-02-25 05:23:58 +03:00
|
|
|
, pkgconfig, gtk3, glib, clutter-gtk, clutter-gst, udev, gst_all_1, itstool
|
2019-09-02 19:44:19 +03:00
|
|
|
, libgudev, vala, docbook_xml_dtd_43, docbook_xsl, appstream-glib
|
2018-02-25 05:23:58 +03:00
|
|
|
, libxslt, yelp-tools, gnome-common, gtk-doc
|
2019-09-02 19:44:19 +03:00
|
|
|
, adwaita-icon-theme, librsvg, totem, gdk-pixbuf, gnome3, gnome-desktop, libxml2
|
|
|
|
, meson, ninja, dbus, python3 }:
|
2016-09-18 22:35:23 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "cheese";
|
2019-09-02 19:44:19 +03:00
|
|
|
version = "3.34.0";
|
2018-02-25 23:07:20 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "mirror://gnome/sources/cheese/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 19:44:19 +03:00
|
|
|
sha256 = "0wvyc9wb0avrprvm529m42y5fkv3lirdphqydc9jw0c8mh05d1ni";
|
2018-02-25 23:07:20 +03:00
|
|
|
};
|
|
|
|
|
2019-09-02 19:44:19 +03:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-02-25 23:07:20 +03:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "cheese"; attrPath = "gnome3.cheese"; };
|
|
|
|
};
|
2016-09-18 22:35:23 +03:00
|
|
|
|
2017-12-02 05:25:39 +03:00
|
|
|
nativeBuildInputs = [
|
2019-09-02 19:44:19 +03:00
|
|
|
meson ninja pkgconfig gettext itstool vala wrapGAppsHook libxml2 appstream-glib
|
2017-12-02 05:58:44 +03:00
|
|
|
libxslt docbook_xml_dtd_43 docbook_xsl
|
2019-09-02 19:44:19 +03:00
|
|
|
gtk-doc yelp-tools gnome-common python3
|
2017-12-02 05:25:39 +03:00
|
|
|
];
|
|
|
|
buildInputs = [ gtk3 glib gnome-video-effects
|
2019-05-22 14:03:39 +03:00
|
|
|
gdk-pixbuf adwaita-icon-theme librsvg udev gst_all_1.gstreamer
|
2018-02-25 05:23:58 +03: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
|
2019-09-02 19:44:19 +03:00
|
|
|
libcanberra-gtk3 libgudev dbus ];
|
2016-09-18 22:35:23 +03:00
|
|
|
|
2017-12-02 06:02:10 +03:00
|
|
|
outputs = [ "out" "man" "devdoc" ];
|
2017-12-02 05:58:44 +03:00
|
|
|
|
2017-12-02 05:26:06 +03:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Effects
|
|
|
|
--prefix XDG_DATA_DIRS : "${gnome-video-effects}/share"
|
2017-12-02 06:53:34 +03:00
|
|
|
# vp8enc preset
|
|
|
|
--prefix GST_PRESET_PATH : "${gst_all_1.gst-plugins-good}/share/gstreamer-1.0/presets"
|
2017-12-02 08:56:33 +03:00
|
|
|
# Thumbnailers
|
2019-05-22 14:03:39 +03:00
|
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
2017-12-02 08:56:33 +03:00
|
|
|
--prefix XDG_DATA_DIRS : "${totem}/share"
|
2017-12-02 05:26:06 +03:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2016-09-18 22:35:23 +03:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Cheese";
|
2016-09-18 22:35:23 +03:00
|
|
|
description = "Take photos and videos with your webcam, with fun graphical effects";
|
2020-04-01 15:40:51 +03:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 22:35:23 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|