gnome3.totem: clean up
* format with nixpkgs-fmt * reorder attributes to more cannonical order * narrow patchShebangs attributes * add hooks to checkPhase * correct license
This commit is contained in:
parent
8e7fca3a5c
commit
b8884815dd
@ -1,9 +1,34 @@
|
|||||||
{ stdenv, fetchurl, meson, ninja, gettext, gst_all_1
|
{ stdenv
|
||||||
, clutter-gtk, clutter-gst, python3Packages, shared-mime-info
|
, fetchurl
|
||||||
, pkgconfig, gtk3, glib, gobject-introspection, totem-pl-parser
|
, meson
|
||||||
, wrapGAppsHook, itstool, libxml2, vala, gnome3, grilo, grilo-plugins
|
, ninja
|
||||||
, libpeas, adwaita-icon-theme, gnome-desktop, gsettings-desktop-schemas
|
, gettext
|
||||||
, gdk-pixbuf, tracker, nautilus, xvfb_run }:
|
, gst_all_1
|
||||||
|
, clutter-gtk
|
||||||
|
, clutter-gst
|
||||||
|
, python3Packages
|
||||||
|
, shared-mime-info
|
||||||
|
, pkgconfig
|
||||||
|
, gtk3
|
||||||
|
, glib
|
||||||
|
, gobject-introspection
|
||||||
|
, totem-pl-parser
|
||||||
|
, wrapGAppsHook
|
||||||
|
, itstool
|
||||||
|
, libxml2
|
||||||
|
, vala
|
||||||
|
, gnome3
|
||||||
|
, grilo
|
||||||
|
, grilo-plugins
|
||||||
|
, libpeas
|
||||||
|
, adwaita-icon-theme
|
||||||
|
, gnome-desktop
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, gdk-pixbuf
|
||||||
|
, tracker
|
||||||
|
, nautilus
|
||||||
|
, xvfb_run
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "totem";
|
pname = "totem";
|
||||||
@ -14,16 +39,48 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8";
|
sha256 = "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
vala
|
||||||
|
pkgconfig
|
||||||
|
gettext
|
||||||
|
python3Packages.python
|
||||||
|
itstool
|
||||||
|
gobject-introspection
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja vala pkgconfig gettext python3Packages.python itstool gobject-introspection wrapGAppsHook ];
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk3 glib grilo clutter-gtk clutter-gst totem-pl-parser grilo-plugins
|
gtk3
|
||||||
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
|
glib
|
||||||
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav libpeas shared-mime-info
|
grilo
|
||||||
gdk-pixbuf libxml2 adwaita-icon-theme gnome-desktop
|
clutter-gtk
|
||||||
gsettings-desktop-schemas tracker nautilus
|
clutter-gst
|
||||||
python3Packages.pygobject3 python3Packages.dbus-python # for plug-ins
|
totem-pl-parser
|
||||||
|
grilo-plugins
|
||||||
|
gst_all_1.gstreamer
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gst-plugins-good
|
||||||
|
gst_all_1.gst-plugins-bad
|
||||||
|
gst_all_1.gst-plugins-ugly
|
||||||
|
gst_all_1.gst-libav
|
||||||
|
libpeas
|
||||||
|
shared-mime-info
|
||||||
|
gdk-pixbuf
|
||||||
|
libxml2
|
||||||
|
adwaita-icon-theme
|
||||||
|
gnome-desktop
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
tracker
|
||||||
|
nautilus
|
||||||
|
# for plug-ins
|
||||||
|
python3Packages.pygobject3
|
||||||
|
python3Packages.dbus-python
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
xvfb_run
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
@ -31,16 +88,22 @@ stdenv.mkDerivation rec {
|
|||||||
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x meson_compile_python.py meson_post_install.py # patchShebangs requires executable file
|
chmod +x meson_compile_python.py meson_post_install.py # patchShebangs requires executable file
|
||||||
patchShebangs .
|
patchShebangs \
|
||||||
|
./meson_compile_python.py \
|
||||||
|
./meson_post_install.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ xvfb_run ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
xvfb-run -s '-screen 0 800x600x24' \
|
xvfb-run -s '-screen 0 800x600x24' \
|
||||||
ninja test
|
ninja test
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
wrapPrefixVariables = [ "PYTHONPATH" ];
|
wrapPrefixVariables = [ "PYTHONPATH" ];
|
||||||
@ -56,7 +119,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://wiki.gnome.org/Apps/Videos";
|
homepage = "https://wiki.gnome.org/Apps/Videos";
|
||||||
description = "Movie player for the GNOME desktop based on GStreamer";
|
description = "Movie player for the GNOME desktop based on GStreamer";
|
||||||
maintainers = teams.gnome.members;
|
maintainers = teams.gnome.members;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus; # with exception to allow use of non-GPL compatible plug-ins
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user