mpv: use correct nv-codec-headers version

Otherwise, mpv falls back to nvdec-copy, using significantly more cpu.
This commit is contained in:
Jeff Huffman 2023-12-10 05:54:00 -05:00
parent 137f80e8fc
commit 435076cc1c
No known key found for this signature in database
GPG Key ID: 7F1A93286A8960C7

View File

@ -15,7 +15,7 @@
, freetype
, libass
, libpthreadstubs
, nv-codec-headers
, nv-codec-headers-11
, lua
, libuchardet
, libiconv
@ -198,7 +198,7 @@ in stdenv'.mkDerivation (finalAttrs: {
++ lib.optionals xineramaSupport [ libXinerama ]
++ lib.optionals xvSupport [ libXv ]
++ lib.optionals zimgSupport [ zimg ]
++ lib.optionals stdenv.isLinux [ nv-codec-headers ]
++ lib.optionals stdenv.isLinux [ nv-codec-headers-11 ]
++ lib.optionals stdenv.isDarwin [ libiconv ]
++ lib.optionals stdenv.isDarwin [ CoreFoundation Cocoa CoreAudio MediaPlayer Accelerate ]
++ lib.optionals (stdenv.isDarwin && swiftSupport) [ AVFoundation CoreMedia ];