decklink: fix build for kernel 6.13

Naxdy a1e05f1d ba487dbc

+10
+10
pkgs/os-specific/linux/decklink/default.nix
··· 3 3 lib, 4 4 blackmagic-desktop-video, 5 5 kernel, 6 + fetchpatch, 6 7 }: 7 8 stdenv.mkDerivation (finalAttrs: { 8 9 pname = "decklink"; ··· 11 12 # and desktop service, since the version of the two have to match anyways. 12 13 # See pkgs/by-name/bl/blackmagic-desktop-video/package.nix for more. 13 14 inherit (blackmagic-desktop-video) src version; 15 + 16 + patches = lib.optionals (lib.versionAtLeast kernel.modDirVersion "6.13") [ 17 + # needed for version 14.4.x to build for kernel 6.13 18 + (fetchpatch { 19 + name = "01-update-makefiles"; 20 + url = "https://aur.archlinux.org/cgit/aur.git/plain/01-update-makefiles.patch?h=decklink"; 21 + hash = "sha256-l3iu0fG/QJMdGI/WSlNn+qjF4nK25JxoiwhPrMGTqE4="; 22 + }) 23 + ]; 14 24 15 25 KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; 16 26 INSTALL_MOD_PATH = placeholder "out";