summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/pitivi
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2015-03-23 11:24:17 +0100
committerLuca Bruno <lucabru@src.gnome.org>2015-03-23 11:24:34 +0100
commit4a1c3760e05e5f62691374f5beb10d2c9048fc01 (patch)
treef008d0b7a425722f8f26800896eed6767a8c95bb /pkgs/applications/video/pitivi
parent12e60724ff33a097cc6540597b6665a17739183d (diff)
pitivi: cleanup and fix icons on non-nixos
Diffstat (limited to 'pkgs/applications/video/pitivi')
-rw-r--r--pkgs/applications/video/pitivi/default.nix24
1 files changed, 9 insertions, 15 deletions
diff --git a/pkgs/applications/video/pitivi/default.nix b/pkgs/applications/video/pitivi/default.nix
index 7f53aa07db60..5b77ec916b08 100644
--- a/pkgs/applications/video/pitivi/default.nix
+++ b/pkgs/applications/video/pitivi/default.nix
@@ -1,7 +1,6 @@
{ stdenv, fetchurl, pkgconfig, intltool, itstool, makeWrapper
-, pythonPackages, gst, clutter-gst, clutter-gtk
-, gobjectIntrospection, clutter, gtk3, librsvg
-, gnome_icon_theme, gnome_icon_theme_symbolic, gnome3
+, pythonPackages, gst, clutter-gst, clutter-gtk, hicolor_icon_theme
+, gobjectIntrospection, clutter, gtk3, librsvg, gnome3, libnotify
}:
let
@@ -30,27 +29,22 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig intltool itstool makeWrapper ];
buildInputs = [
- gobjectIntrospection clutter-gst clutter-gtk librsvg
+ gobjectIntrospection clutter-gst clutter-gtk librsvg gnome3.gnome_desktop
+ hicolor_icon_theme gnome3.gnome_icon_theme gnome3.gnome_icon_theme_symbolic
+ gnome3.gsettings_desktop_schemas libnotify
] ++ (with gst; [
- gst-python gst-editing-services
+ gstreamer gst-python gst-editing-services
gst-plugins-base gst-plugins-good
gst-plugins-bad gst-plugins-ugly gst-libav
]) ++ (with pythonPackages; [
python pygobject3 pyxdg numpy pycairo sqlite3
]);
- preFixup = with stdenv.lib; with gst; let
- libraryPath = makeLibraryPath [
- gstreamer gst-editing-services
- clutter-gst clutter-gtk clutter gtk3
- gnome3.gnome_desktop
- ];
- in ''
+ preFixup = ''
wrapProgram "$out/bin/pitivi" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
- --prefix LD_LIBRARY_PATH : "${libraryPath}" \
+ --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
- --prefix XDG_DATA_DIRS : "\$XDG_ICON_DIRS:$out/share:$GSETTINGS_SCHEMAS_PATH"
- rm $out/share/icons/hicolor/icon-theme.cache
+ --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$out/share:$GSETTINGS_SCHEMAS_PATH"
'';
}