mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
09e0cc7cc7
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated https://repology.org/repository/nix_stable/problems
25 lines
633 B
Nix
25 lines
633 B
Nix
{stdenv, fetchurl, libusb}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libftdi-0.20";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.intra2net.com/en/developer/libftdi/download/${name}.tar.gz";
|
|
sha256 = "13l39f6k6gff30hsgh0wa2z422g9pyl91rh8a8zz6f34k2sxaxii";
|
|
};
|
|
|
|
buildInputs = [ libusb ];
|
|
|
|
propagatedBuildInputs = [ libusb ];
|
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
preFixup = ''rm -rf "$(pwd)" '';
|
|
|
|
meta = {
|
|
description = "A library to talk to FTDI chips using libusb";
|
|
homepage = https://www.intra2net.com/en/developer/libftdi/;
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|