nixpkgs/pkgs/by-name/ch/cheese/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

108 lines
2.0 KiB
Nix
Raw Normal View History

2021-04-08 22:50:46 +00:00
{ lib
, stdenv
, gettext
, fetchurl
, wrapGAppsHook3
, gnome-video-effects
, libcanberra-gtk3
2021-01-17 02:21:50 +00:00
, pkg-config
, gtk3
, glib
, clutter-gtk
, clutter-gst
, gst_all_1
, itstool
, vala
, docbook_xml_dtd_43
2021-04-08 22:50:46 +00:00
, docbook-xsl-nons
, appstream-glib
, libxslt
, gtk-doc
, adwaita-icon-theme
, librsvg
, totem
, gdk-pixbuf
, gnome
, gnome-desktop
, libxml2
, meson
, ninja
, dbus
2021-08-12 19:01:56 +00:00
, pipewire
}:
stdenv.mkDerivation rec {
pname = "cheese";
version = "44.1";
2021-04-08 22:50:46 +00:00
outputs = [ "out" "man" "devdoc" ];
src = fetchurl {
2021-09-23 21:42:36 +00:00
url = "mirror://gnome/sources/cheese/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "XyGFxMmeVN3yuLr2DIKBmVDlSVLhMuhjmHXz7cv49o4=";
};
2017-12-02 02:25:39 +00:00
nativeBuildInputs = [
appstream-glib
docbook_xml_dtd_43
2021-04-08 22:50:46 +00:00
docbook-xsl-nons
gettext
gtk-doc
itstool
libxml2
2021-04-08 22:50:46 +00:00
libxslt # for xsltproc
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
vala
wrapGAppsHook3
2021-04-08 22:50:46 +00:00
glib # for glib-compile-schemas
];
buildInputs = [
adwaita-icon-theme
clutter-gst
clutter-gtk
dbus
gdk-pixbuf
glib
gnome-desktop
gnome-video-effects
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gstreamer
gtk3
libcanberra-gtk3
librsvg
2021-08-12 19:01:56 +00:00
pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
2017-12-02 02:25:39 +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
2019-05-22 11:03:39 +00:00
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
--prefix XDG_DATA_DIRS : "${totem}/share"
2017-12-02 02:26:06 +00:00
)
'';
2021-04-08 22:50:46 +00:00
passthru = {
updateScript = gnome.updateScript {
2021-04-08 22:50:46 +00:00
packageName = "cheese";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/cheese";
description = "Take photos and videos with your webcam, with fun graphical effects";
mainProgram = "cheese";
2024-06-22 14:41:32 +00:00
maintainers = [ ];
2021-04-08 22:50:46 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}