summary refs log tree commit diff
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2021-03-23 11:11:11 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2021-03-23 11:11:11 +0100
commitcfba508aa96cc6830e04a2b9d636f06797fc3921 (patch)
tree4bbabcb87a70c446f6b980cf9187833394eba351
parent06c6ec1c9938133107971cd04bb343aaadd0efed (diff)
downloadnixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.tar
nixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.tar.gz
nixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.tar.bz2
nixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.tar.lz
nixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.tar.xz
nixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.tar.zst
nixpkgs-cfba508aa96cc6830e04a2b9d636f06797fc3921.zip
blackmagic: Add patch for libftdi1 1.5 compatibility
-rw-r--r--pkgs/development/tools/misc/blackmagic/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/blackmagic/default.nix b/pkgs/development/tools/misc/blackmagic/default.nix
index fc1af1a4d68..479abed55b3 100644
--- a/pkgs/development/tools/misc/blackmagic/default.nix
+++ b/pkgs/development/tools/misc/blackmagic/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub
+{ stdenv, lib, fetchFromGitHub, fetchpatch
 , gcc-arm-embedded, libftdi1, libusb-compat-0_1, pkg-config
 , python, pythonPackages
 }:
@@ -19,6 +19,14 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
+  patches = [
+    # Fix deprecation warning with libftdi 1.5
+    (fetchpatch {
+      url = "https://github.com/blacksphere/blackmagic/commit/dea4be2539c5ea63836ec78dca08b52fa8b26ab5.patch";
+      sha256 = "0f81simij1wdhifsxaavalc6yxzagfbgwry969dbjmxqzvrsrds5";
+    })
+  ];
+
   nativeBuildInputs = [
     gcc-arm-embedded pkg-config
   ];