mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
ffmpeg: work around libvulkan.so not being NEEDED
This commit is contained in:
parent
68500c37a3
commit
3f89316af0
@ -683,6 +683,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
postFixup = optionalString (stdenv.isLinux && withLib) ''
|
||||
addOpenGLRunpath ${placeholder "lib"}/lib/libavcodec.so
|
||||
addOpenGLRunpath ${placeholder "lib"}/lib/libavutil.so
|
||||
''
|
||||
# https://trac.ffmpeg.org/ticket/10809
|
||||
+ optionalString (versionAtLeast version "5.0" && withVulkan) ''
|
||||
patchelf $lib/lib/libavcodec.so --add-needed libvulkan.so --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
Loading…
Reference in New Issue
Block a user