nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{stdenv, fetchurl, libusb}:
2
3stdenv.mkDerivation rec {
4 name = "libftdi-0.20";
5
6 src = fetchurl {
7 url = "http://www.intra2net.com/en/developer/libftdi/download/${name}.tar.gz";
8 sha256 = "13l39f6k6gff30hsgh0wa2z422g9pyl91rh8a8zz6f34k2sxaxii";
9 };
10
11 buildInputs = [ libusb ];
12
13 propagatedBuildInputs = [ libusb ];
14
15 # Hack to avoid TMPDIR in RPATHs.
16 preFixup = ''rm -rf "$(pwd)" '';
17
18 meta = {
19 description = "A library to talk to FTDI chips using libusb";
20 homepage = https://www.intra2net.com/en/developer/libftdi/;
21 license = stdenv.lib.licenses.lgpl21;
22 platforms = stdenv.lib.platforms.unix;
23 };
24}