Skip to content

Commit a33fdad

Browse files
committed
[nix] Workaround ftdi scraping protection
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent 27173d4 commit a33fdad

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

nix/ft4222.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
1111
version = "1.4.4.232";
1212
src = fetchzip {
1313
url = "https://ftdichip.com/wp-content/uploads/2025/04/libft4222-linux-${version}.zip";
14+
curlOptsList = [
15+
"--user-agent" "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
16+
];
1417
hash = "sha256-WGy6llULMvjPcc8L1e7qPh9xYB1a2sFKyoLI7WZWNp0=";
1518
};
1619

nix/ftd2xx.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
1111
version = "1.4.34";
1212
src = fetchzip {
1313
url = "https://ftdichip.com/wp-content/uploads/2025/11/libftd2xx-linux-x86_64-${version}.tgz";
14+
curlOptsList = [
15+
"--user-agent" "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
16+
];
1417
hash = "sha256-O47VO8DpNJt2VTjvyEwA4sxLegUrwdazeIh3JHW2URI=";
1518
};
1619

nix/libmpsse.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
1111
version = "1.0.8";
1212
src = fetchzip {
1313
url = "https://ftdichip.com/wp-content/uploads/2025/08/libmpsse-x86_64-${version}.tgz";
14+
curlOptsList = [
15+
"--user-agent" "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
16+
];
1417
hash = "sha256-9JwRDfQj6KMV+k1WxgKq6IB3hgSXNI9sqX3NNQz2n3c=";
1518
};
1619

0 commit comments

Comments
 (0)