3
0
Fork 0
forked from mirrors/nixpkgs

GStreamer: Add a setup hook to define `GST_PLUGIN_PATH'.

svn path=/nixpkgs/trunk/; revision=13253
This commit is contained in:
Ludovic Courtès 2008-11-11 17:05:07 +00:00
parent d7528deba0
commit 2b9e883591
2 changed files with 10 additions and 0 deletions

View file

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
configureFlags = "--enable-shared --disable-static --enable-failing-tests
--localstatedir=/var";
setupHook = ./setup-hook.sh;
meta = {
homepage = http://gstreamer.freedesktop.org;
};

View file

@ -0,0 +1,8 @@
addGstreamerLibPath () {
if test -d "$1/lib/gstreamer-0.10"
then
export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}${GST_PLUGIN_PATH:+:}$1/lib/gstreamer-0.10"
fi
}
envHooks=(${envHooks[@]} addGstreamerLibPath)