Skip to content

File tree

1 file changed

+11
-0
lines changed
  • pkgs/development/libraries/libftdi

1 file changed

+11
-0
lines changed

pkgs/development/libraries/libftdi/1.x.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{ lib
22
, stdenv
33
, fetchgit
4+
, fetchpatch
45
, cmake
56
, pkg-config
67
, libusb1
@@ -29,6 +30,16 @@ stdenv.mkDerivation rec {
2930
hash = "sha256-U37M5P7itTF1262oW+txbKxcw2lhYHAwy1ML51SDVMs=";
3031
};
3132

33+
patches = [
34+
(fetchpatch {
35+
# http://developer.intra2net.com/mailarchive/html/libftdi/2024/msg00024.html
36+
# https://bugzilla.redhat.com/show_bug.cgi?id=2319133
37+
name = "swig-4.3.0-fix.patch";
38+
url = "https://src.fedoraproject.org/rpms/libftdi/raw/9051ea9ea767eced58b69d855a5d700a5d4602cc/f/libftdi-1.5-swig-4.3.patch";
39+
hash = "sha256-X5tqiPewnyAyvLzR6s0VbNpZKLd0idtPGU4ro36CZHI=";
40+
})
41+
];
42+
3243
strictDeps = true;
3344

3445
nativeBuildInputs = [ cmake pkg-config ]

0 commit comments

Comments
 (0)