add gstreamer 1.0 setup-hook and use it where appropriate
This commit is contained in:
@@ -23,4 +23,6 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ glib ];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
}
|
||||
|
||||
9
pkgs/development/libraries/gstreamer/core/setup-hook.sh
Normal file
9
pkgs/development/libraries/gstreamer/core/setup-hook.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
addGstreamerLibPath () {
|
||||
if test -d "$1/lib/gstreamer-1.0"
|
||||
then
|
||||
export GST_PLUGIN_SYSTEM_PATH_1_0="${GST_PLUGIN_SYSTEM_PATH_1_0}${GST_PLUGIN_SYSTEM_PATH_1_0:+:}$1/lib/gstreamer-1.0"
|
||||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addGstreamerLibPath)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
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"
|
||||
export GST_PLUGIN_SYSTEM_PATH="${GST_PLUGIN_SYSTEM_PATH}${GST_PLUGIN_SYSTEM_PATH:+:}$1/lib/gstreamer-0.10"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user