diff --git a/pkgs/development/libraries/gstreamer/gstreamer/0.10.17.nix b/pkgs/development/libraries/gstreamer/gstreamer/0.10.17.nix index 3508145c22c..02244e77371 100644 --- a/pkgs/development/libraries/gstreamer/gstreamer/0.10.17.nix +++ b/pkgs/development/libraries/gstreamer/gstreamer/0.10.17.nix @@ -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; }; diff --git a/pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh b/pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh new file mode 100644 index 00000000000..ad184dc21e9 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh @@ -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)