···33 lib,
44 blackmagic-desktop-video,
55 kernel,
66+ fetchpatch,
67}:
78stdenv.mkDerivation (finalAttrs: {
89 pname = "decklink";
···1112 # and desktop service, since the version of the two have to match anyways.
1213 # See pkgs/by-name/bl/blackmagic-desktop-video/package.nix for more.
1314 inherit (blackmagic-desktop-video) src version;
1515+1616+ patches = lib.optionals (lib.versionAtLeast kernel.modDirVersion "6.13") [
1717+ # needed for version 14.4.x to build for kernel 6.13
1818+ (fetchpatch {
1919+ name = "01-update-makefiles";
2020+ url = "https://aur.archlinux.org/cgit/aur.git/plain/01-update-makefiles.patch?h=decklink";
2121+ hash = "sha256-l3iu0fG/QJMdGI/WSlNn+qjF4nK25JxoiwhPrMGTqE4=";
2222+ })
2323+ ];
14241525 KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
1626 INSTALL_MOD_PATH = placeholder "out";