From 435076cc1ca6e6e5aa8e6bf5cd18f35202daf2df Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Sun, 10 Dec 2023 05:54:00 -0500 Subject: [PATCH] mpv: use correct nv-codec-headers version Otherwise, mpv falls back to nvdec-copy, using significantly more cpu. --- pkgs/applications/video/mpv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 252f1637172f..3fc3b4eb1a8b 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -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 ];