diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2016-11-06 22:50:41 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-11-06 22:50:41 +0100 |
commit | b1df5bf89b641f4e7f7538e460df69ee177dfa7b (patch) | |
tree | 61b48f8021a2fb36764e58aaa1846f652a16ad61 /pkgs/development/libraries/gstreamer | |
parent | aa094fe084ea03146db30117a8a029269463bb86 (diff) | |
download | nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.tar nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.tar.gz nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.tar.bz2 nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.tar.lz nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.tar.xz nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.tar.zst nixlib-b1df5bf89b641f4e7f7538e460df69ee177dfa7b.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/gstreamer')
-rw-r--r-- | pkgs/development/libraries/gstreamer/core/default.nix | 4 |
1 files 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 ''; |