diff --git a/pkgs/development/libraries/libftdi/1.x.nix b/pkgs/development/libraries/libftdi/1.x.nix index 5d579cf8cb33..d09ee1ff9ebe 100644 --- a/pkgs/development/libraries/libftdi/1.x.nix +++ b/pkgs/development/libraries/libftdi/1.x.nix @@ -1,6 +1,7 @@ { 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 ]