···3 lib,
4 blackmagic-desktop-video,
5 kernel,
06}:
7stdenv.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;
0000000001415 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}:
8stdenv.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+ ];
2425 KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
26 INSTALL_MOD_PATH = placeholder "out";