decklink: fix build for kernel 6.13 (#387352)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
lib,
|
||||
blackmagic-desktop-video,
|
||||
kernel,
|
||||
fetchpatch,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "decklink";
|
||||
@@ -12,6 +13,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# See pkgs/by-name/bl/blackmagic-desktop-video/package.nix for more.
|
||||
inherit (blackmagic-desktop-video) src version;
|
||||
|
||||
patches = lib.optionals (lib.versionAtLeast kernel.modDirVersion "6.13") [
|
||||
# needed for version 14.4.x to build for kernel 6.13
|
||||
(fetchpatch {
|
||||
name = "01-update-makefiles";
|
||||
url = "https://aur.archlinux.org/cgit/aur.git/plain/01-update-makefiles.patch?h=decklink";
|
||||
hash = "sha256-l3iu0fG/QJMdGI/WSlNn+qjF4nK25JxoiwhPrMGTqE4=";
|
||||
})
|
||||
];
|
||||
|
||||
KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
INSTALL_MOD_PATH = placeholder "out";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user