diff --git a/pkgs/blackmagic-desktop-video/default.nix b/pkgs/blackmagic-desktop-video/default.nix index 9769a50..ea2f8d4 100644 --- a/pkgs/blackmagic-desktop-video/default.nix +++ b/pkgs/blackmagic-desktop-video/default.nix @@ -11,14 +11,14 @@ stdenv.mkDerivation rec { ]; src = requireFile { - name = "Blackmagic_Desktop_Video_Linux_12.0.tar.gz"; - url = "https://www.blackmagicdesign.com/support/download/76b2edbed5884e1dbbfea104071f1643/Linux"; - sha256 = "e5a586ee705513cf5e6b024e1ec68621ab91d50b370981023e0bff73a19169c2"; + name = "Blackmagic_Desktop_Video_Linux_12.1.tar.gz"; + url = "https://www.blackmagicdesign.com/support/download/d99c3a1740b546f094ffbb30ddf1f4c1"; + sha256 = "51febf247d22412beea2d637fcc34cc19b1a46df9a5bf0e157d95705bf7c7b73"; }; setSourceRoot = '' - tar xf Blackmagic_Desktop_Video_Linux_12.0/other/x86_64/desktopvideo-12.0a14-x86_64.tar.gz - sourceRoot=$NIX_BUILD_TOP/desktopvideo-12.0a14-x86_64 + tar xf Blackmagic_Desktop_Video_Linux_12.1/other/x86_64/desktopvideo-12.1a9-x86_64.tar.gz + sourceRoot=$NIX_BUILD_TOP/desktopvideo-12.1a9-x86_64 ''; installPhase = '' diff --git a/pkgs/decklink/default.nix b/pkgs/decklink/default.nix index dc26e70..7545b54 100644 --- a/pkgs/decklink/default.nix +++ b/pkgs/decklink/default.nix @@ -5,39 +5,26 @@ stdenv.mkDerivation rec { version = "12.0"; src = requireFile { - name = "Blackmagic_Desktop_Video_Linux_12.0.tar.gz"; - url = "https://www.blackmagicdesign.com/support/download/76b2edbed5884e1dbbfea104071f1643/Linux"; - sha256 = "e5a586ee705513cf5e6b024e1ec68621ab91d50b370981023e0bff73a19169c2"; + name = "Blackmagic_Desktop_Video_Linux_12.1.tar.gz"; + url = "https://www.blackmagicdesign.com/support/download/d99c3a1740b546f094ffbb30ddf1f4c1"; + sha256 = "51febf247d22412beea2d637fcc34cc19b1a46df9a5bf0e157d95705bf7c7b73"; }; - patches = [ - (fetchpatch { - name = "01-fix-get_user_pages.patch"; - url = "https://aur.archlinux.org/cgit/aur.git/plain/01-fix-get_user_pages.patch?h=decklink&id=212ec426d96db3de0fedad803238d0604cc4df76"; - sha256 = "193199d59kmwdajhyw9k98636lbxrxwnxwlbhhijp1qms6y1qn2j"; - }) - (fetchpatch { - name = "02-fix-have_unlocked_ioctl.patch"; - url = "https://aur.archlinux.org/cgit/aur.git/plain/02-fix-have_unlocked_ioctl.patch?h=decklink&id=212ec426d96db3de0fedad803238d0604cc4df76"; - sha256 = "0yf3bwry28zr1yfnx6wyh650d8kac4q70x95kz4p7sr6r7ajwzdm"; - }) - ]; - KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; INSTALL_MOD_PATH = placeholder "out"; nativeBuildInputs = kernel.moduleBuildDependencies; setSourceRoot = '' - tar xf Blackmagic_Desktop_Video_Linux_12.0/other/x86_64/desktopvideo-12.0a14-x86_64.tar.gz - sourceRoot=$NIX_BUILD_TOP/desktopvideo-12.0a14-x86_64/usr/src + tar xf Blackmagic_Desktop_Video_Linux_12.1/other/x86_64/desktopvideo-12.1a9-x86_64.tar.gz + sourceRoot=$NIX_BUILD_TOP/desktopvideo-12.1a9-x86_64/usr/src ''; buildPhase = '' runHook preBuild - make -C $sourceRoot/blackmagic-12.0a14 -j$NIX_BUILD_CORES - make -C $sourceRoot/blackmagic-io-12.0a14 -j$NIX_BUILD_CORES + make -C $sourceRoot/blackmagic-12.1a9 -j$NIX_BUILD_CORES + make -C $sourceRoot/blackmagic-io-12.1a9 -j$NIX_BUILD_CORES runHook postBuild ''; @@ -45,8 +32,8 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall - make -C $KERNELDIR M=$sourceRoot/blackmagic-12.0a14 modules_install - make -C $KERNELDIR M=$sourceRoot/blackmagic-io-12.0a14 modules_install + make -C $KERNELDIR M=$sourceRoot/blackmagic-12.1a9 modules_install + make -C $KERNELDIR M=$sourceRoot/blackmagic-io-12.1a9 modules_install runHook postInstall '';