nixpkgs/pkgs/desktops/gnome-3/apps/cheese/default.nix

59 lines
2.0 KiB
Nix
Raw Normal View History

{ stdenv, intltool, fetchurl, wrapGAppsHook, gnome-video-effects, libcanberra-gtk3
, pkgconfig, gtk3, glib, clutter-gtk, clutter-gst, udev, gst_all_1, itstool
2017-12-02 02:58:44 +00:00
, libgudev, autoreconfHook, vala, docbook_xml_dtd_43, docbook_xsl, appstream-glib
, libxslt, yelp-tools, gnome-common, gtk-doc
, adwaita-icon-theme, librsvg, totem, gdk_pixbuf, gnome3, gnome-desktop, libxml2 }:
stdenv.mkDerivation rec {
name = "cheese-${version}";
2019-03-03 18:36:01 +00:00
version = "3.32.0";
src = fetchurl {
url = "mirror://gnome/sources/cheese/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2019-03-03 18:36:01 +00:00
sha256 = "0ahkfs6v9qraz607k2sr4qw9a59lg2m8kiw5nxhc65qql110sjsl";
};
passthru = {
updateScript = gnome3.updateScript { packageName = "cheese"; attrPath = "gnome3.cheese"; };
};
2017-12-02 02:25:39 +00:00
nativeBuildInputs = [
pkgconfig intltool itstool vala wrapGAppsHook libxml2 appstream-glib
2017-12-02 02:58:44 +00:00
libxslt docbook_xml_dtd_43 docbook_xsl
autoreconfHook gtk-doc yelp-tools gnome-common
2017-12-02 02:25:39 +00:00
];
buildInputs = [ gtk3 glib gnome-video-effects
gdk_pixbuf adwaita-icon-theme librsvg udev gst_all_1.gstreamer
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 ];
2017-12-02 03:02:10 +00:00
outputs = [ "out" "man" "devdoc" ];
2017-12-02 02:58:44 +00:00
patches = [
gtk-doc.respect_xml_catalog_files_var_patch
2017-12-02 02:58:44 +00:00
];
2017-12-02 02:26:06 +00:00
preFixup = ''
gappsWrapperArgs+=(
# Effects
--prefix XDG_DATA_DIRS : "${gnome-video-effects}/share"
# vp8enc preset
--prefix GST_PRESET_PATH : "${gst_all_1.gst-plugins-good}/share/gstreamer-1.0/presets"
# Thumbnailers
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
--prefix XDG_DATA_DIRS : "${totem}/share"
2017-12-02 02:26:06 +00: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;
};
}