gstreamer: unbreak finding plugins in $NIX_PROFILES (#20207)

* gstreamer-1.0: make gst-launch find plugins again

gst-launch and friends are in the "dev" output now.

* gstreamer-1.0: lower priority on plugins from $NIX_PROFILES

Suffix the plugin paths from $NIX_PROFILES instead of prefixing them to
$GST_PLUGIN_SYSTEM_PATH. If a program has specifically set up its plugin
path to some custom/specific version, we don't want plugins from
$NIX_PROFILES to mess things up by having higher priority.
This commit is contained in:
Bjørn Forsman 2016-11-06 22:50:41 +01:00 committed by Vladimír Čunát
parent aa094fe084
commit b1df5bf89b

View File

@ -34,8 +34,8 @@ stdenv.mkDerivation rec {
'';
postInstall = ''
for prog in "$out/bin/"*; do
wrapProgram "$prog" --prefix GST_PLUGIN_SYSTEM_PATH : "\$(unset _tmp; for profile in \$NIX_PROFILES; do _tmp="\$profile/lib/gstreamer-1.0''$\{_tmp:+:\}\$_tmp"; done; printf "\$_tmp")"
for prog in "$dev/bin/"*; do
wrapProgram "$prog" --suffix GST_PLUGIN_SYSTEM_PATH : "\$(unset _tmp; for profile in \$NIX_PROFILES; do _tmp="\$profile/lib/gstreamer-1.0''$\{_tmp:+:\}\$_tmp"; done; printf "\$_tmp")"
done
'';