alarm-clock-applet: fix finding gstreamer plugins and gconf at runtime

This commit is contained in:
Alexey Shmalko 2016-07-03 00:21:03 +03:00
parent 640ac5186f
commit 2d992c2afa
No known key found for this signature in database
GPG Key ID: DCEF7BCCEB3066C3

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig { stdenv, fetchurl, makeWrapper, pkgconfig
, glib , glib
, gtk2 , gtk2
, gst_all_1 , gst_all_1
@ -7,6 +7,7 @@
, libxml2 , libxml2
, libunique , libunique
, intltool , intltool
, gst_plugins ? with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-ugly ]
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,11 +19,16 @@ stdenv.mkDerivation rec {
sha256 = "1mrrw5cgv0izdmhdg83vprvbj6062yzk77b2nr1nx6hhmk00946r"; sha256 = "1mrrw5cgv0izdmhdg83vprvbj6062yzk77b2nr1nx6hhmk00946r";
}; };
buildInputs = [ nativeBuildInputs = [
makeWrapper
pkgconfig pkgconfig
];
buildInputs = [
glib glib
gtk2 gtk2
gst_all_1.gstreamer gst_all_1.gstreamer
gst_plugins
gnome.GConf gnome.GConf
gnome.gnome_icon_theme gnome.gnome_icon_theme
libnotify libnotify
@ -31,6 +37,15 @@ stdenv.mkDerivation rec {
intltool intltool
]; ];
propagatedUserEnvPkgs = [ gnome.GConf.out ];
enableParallelBuilding = true;
preFixup = ''
wrapProgram $out/bin/alarm-clock-applet \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://alarm-clock.pseudoberries.com/; homepage = http://alarm-clock.pseudoberries.com/;
description = "A fully-featured alarm clock for your GNOME panel or equivalent"; description = "A fully-featured alarm clock for your GNOME panel or equivalent";