mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
gstreamer: fix plugin detection
The `--suffix` option escapes it's arguments. This leads to the `GST_PLUGIN_SYTEM_PATH` variable to be not correctly expanded with the embedded bash script. Switching to `--run` and crafting the required export by hand bypasses the issue.
This commit is contained in:
parent
0f3758b5e6
commit
9b7742eefc
@ -44,7 +44,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
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")"
|
||||
# We can't use --suffix here due to quoting so we craft the export command by hand
|
||||
wrapProgram "$prog" --run "export GST_PLUGIN_SYSTEM_PATH=\$GST_PLUGIN_SYSTEM_PATH"$\{GST_PLUGIN_SYSTEM_PATH:+:\}"\$(unset _tmp; for profile in \$NIX_PROFILES; do _tmp="\$profile/lib/gstreamer-1.0''$\{_tmp:+:\}\$_tmp"; done; printf "\$_tmp")"
|
||||
done
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user