1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/desktops/gnome-3/apps/cheese/default.nix

49 lines
1.7 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
2017-12-02 03:02:10 +00:00
, libxslt, yelp_tools, gnome_common, gtk_doc
, adwaita-icon-theme, librsvg, totem, gdk_pixbuf, gnome3, gnome_desktop, libxml2 }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
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
2017-12-02 03:02:10 +00:00
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: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;
};
}