From b1df5bf89b641f4e7f7538e460df69ee177dfa7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 6 Nov 2016 22:50:41 +0100 Subject: [PATCH] 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. --- pkgs/development/libraries/gstreamer/core/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index da15755355d3..da6a8c7a74a4 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -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 '';