nixpkgs/pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh
Ludovic Courtès 2b9e883591 GStreamer: Add a setup hook to define `GST_PLUGIN_PATH'.
svn path=/nixpkgs/trunk/; revision=13253
2008-11-11 17:05:07 +00:00

9 lines
223 B
Bash

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)