GStreamer: Add a setup hook to define `GST_PLUGIN_PATH'.
svn path=/nixpkgs/trunk/; revision=13253
This commit is contained in:
parent
d7528deba0
commit
2b9e883591
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = "--enable-shared --disable-static --enable-failing-tests
|
configureFlags = "--enable-shared --disable-static --enable-failing-tests
|
||||||
--localstatedir=/var";
|
--localstatedir=/var";
|
||||||
|
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://gstreamer.freedesktop.org;
|
homepage = http://gstreamer.freedesktop.org;
|
||||||
};
|
};
|
||||||
|
@ -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)
|
Loading…
x
Reference in New Issue
Block a user