about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorhexchen <hexchen@lilwit.ch>2023-08-03 19:44:16 +0000
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-09-09 19:45:50 +0200
commit08f93ba684b32e8cf4df1848b038370f0d0d3fc6 (patch)
treee52f20ad16bf728b07353f9fc8317729e976ca74 /pkgs/os-specific
parent59271ebaa548aa2c95d14afc166c10e16de336a8 (diff)
decklink: update to 12.5
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/decklink/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/os-specific/linux/decklink/default.nix b/pkgs/os-specific/linux/decklink/default.nix
index 8d0d167bc7f5e..63bfe4a63af20 100644
--- a/pkgs/os-specific/linux/decklink/default.nix
+++ b/pkgs/os-specific/linux/decklink/default.nix
@@ -1,14 +1,16 @@
-{ stdenv, lib, requireFile, fetchpatch, kernel }:
+{ stdenv
+, lib
+, blackmagic-desktop-video
+, kernel
+}:
 
 stdenv.mkDerivation rec {
   pname = "decklink";
-  version = "12.2a12";
 
-  src = requireFile {
-    name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz";
-    url = "https://www.blackmagicdesign.com/support/download/33abc1034cd54cf99101f9acd2edd93d/Linux";
-    sha256 = "62954a18b60d9040aa4a959dff30ac9c260218ef78d6a63cbb243788f7abc05f";
-  };
+  # the download is a horrible curl mess. we reuse it between the kernel module
+  # and desktop service, since the version of the two have to match anyways.
+  # See pkgs/tools/video/blackmagic-desktop-video/default.nix for more.
+  inherit (blackmagic-desktop-video) src version;
 
   KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
   INSTALL_MOD_PATH = placeholder "out";