decklink: fix build for kernel 6.13

Naxdy a1e05f1d ba487dbc

+10
+10
pkgs/os-specific/linux/decklink/default.nix
··· 3 lib, 4 blackmagic-desktop-video, 5 kernel, 6 }: 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "decklink"; ··· 11 # and desktop service, since the version of the two have to match anyways. 12 # See pkgs/by-name/bl/blackmagic-desktop-video/package.nix for more. 13 inherit (blackmagic-desktop-video) src version; 14 15 KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; 16 INSTALL_MOD_PATH = placeholder "out";
··· 3 lib, 4 blackmagic-desktop-video, 5 kernel, 6 + fetchpatch, 7 }: 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "decklink"; ··· 12 # and desktop service, since the version of the two have to match anyways. 13 # See pkgs/by-name/bl/blackmagic-desktop-video/package.nix for more. 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 + ]; 24 25 KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; 26 INSTALL_MOD_PATH = placeholder "out";