Merge #217044: ffmpeg: fix RUNPATH patching for OpenGL

...into staging
This commit is contained in:
Vladimír Čunát 2023-03-02 09:02:57 +01:00
commit 09768783f2
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -657,9 +657,9 @@ stdenv.mkDerivation (finalAttrs: {
# Set RUNPATH so that libnvcuvid and libcuda in /run/opengl-driver(-32)/lib can be found.
# See the explanation in addOpenGLRunpath.
postFixup = optionalString stdenv.isLinux ''
addOpenGLRunpath $out/lib/libavcodec.so
addOpenGLRunpath $out/lib/libavutil.so
postFixup = optionalString (stdenv.isLinux && withLib) ''
addOpenGLRunpath ${placeholder "lib"}/lib/libavcodec.so
addOpenGLRunpath ${placeholder "lib"}/lib/libavutil.so
'';
enableParallelBuilding = true;