nixpkgs/pkgs/development/libraries/gstreamer/legacy/gstreamer/setup-hook.sh

8 lines
244 B
Bash

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