pitivi: fix gsettings schemas, depend upon gnome-desktop

This commit is contained in:
Luca Bruno 2014-04-17 13:30:08 +02:00
parent 8dbdebb50f
commit 82744e57d6

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, intltool, itstool, makeWrapper
, pythonPackages, gst, clutter-gst, clutter-gtk
, gobjectIntrospection, clutter, gtk3, librsvg
, gnome_icon_theme, gnome_icon_theme_symbolic
, gnome_icon_theme, gnome_icon_theme_symbolic, gnome3
}:
let
@ -39,20 +39,18 @@ in stdenv.mkDerivation rec {
python pygobject3 pyxdg numpy pycairo sqlite3
]);
postInstall = with stdenv.lib; with gst; let
preFixup = with stdenv.lib; with gst; let
libraryPath = makeLibraryPath [
gstreamer gst-editing-services
clutter-gst clutter-gtk clutter gtk3
];
xdgDataDirs = makeSearchPath "share" [
gtk3 gnome_icon_theme gnome_icon_theme_symbolic
gnome3.gnome_desktop
];
in ''
wrapProgram "$out/bin/pitivi" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix LD_LIBRARY_PATH : "${libraryPath}" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
--prefix XDG_DATA_DIRS : "\$XDG_ICON_DIRS:${xdgDataDirs}:$out/share"
--prefix XDG_DATA_DIRS : "\$XDG_ICON_DIRS:$out/share:$GSETTINGS_SCHEMAS_PATH"
rm $out/share/icons/hicolor/icon-theme.cache
'';
}