git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitb1df5bf89b641f4e7f7538e460df69ee177dfa7b authorBjørn Forsman <bjorn.forsman@gmail.com> dateSun 6 Nov 2016, 22:50 (10 years ago) parentaa094fe
1 file changed+2−2
pkgs/development/libraries/gstreamer/core/default.nix+2−2
pkgs/development/libraries/gstreamer/core/default.nix+2−2
@@ -34,8 +34,8 @@ stdenv.mkDerivation rec {
3434 '';
3535
3636 postInstall = ''
37− for prog in "$out/bin/"*; do
38− 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")"
37+ for prog in "$dev/bin/"*; do
38+ 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")"
3939 done
4040 '';
4141