Loading
+11 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchgit
, fetchpatch
, cmake
, pkg-config
, libusb1
@@ -29,6 +30,16 @@ stdenv.mkDerivation rec {
    hash = "sha256-U37M5P7itTF1262oW+txbKxcw2lhYHAwy1ML51SDVMs=";
  };

  patches = [
    (fetchpatch {
      # http://developer.intra2net.com/mailarchive/html/libftdi/2024/msg00024.html
      # https://bugzilla.redhat.com/show_bug.cgi?id=2319133
      name = "swig-4.3.0-fix.patch";
      url = "https://src.fedoraproject.org/rpms/libftdi/raw/9051ea9ea767eced58b69d855a5d700a5d4602cc/f/libftdi-1.5-swig-4.3.patch";
      hash = "sha256-X5tqiPewnyAyvLzR6s0VbNpZKLd0idtPGU4ro36CZHI=";
    })
  ];

  strictDeps = true;

  nativeBuildInputs = [ cmake pkg-config ]