uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
33
pkgs/development/libraries/libftdi/default.nix
Normal file
33
pkgs/development/libraries/libftdi/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{lib, stdenv, fetchurl, libusb-compat-0_1}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libftdi";
|
||||
version = "0.20";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.intra2net.com/en/developer/libftdi/download/${pname}-${version}.tar.gz";
|
||||
sha256 = "13l39f6k6gff30hsgh0wa2z422g9pyl91rh8a8zz6f34k2sxaxii";
|
||||
};
|
||||
|
||||
buildInputs = [ libusb-compat-0_1 ];
|
||||
|
||||
propagatedBuildInputs = [ libusb-compat-0_1 ];
|
||||
|
||||
# Hack to avoid TMPDIR in RPATHs.
|
||||
preFixup = ''rm -rf "$(pwd)" '';
|
||||
configureFlags = lib.optional (!stdenv.isDarwin) "--with-async-mode";
|
||||
|
||||
# allow async mode. from ubuntu. see:
|
||||
# https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/libftdi/trusty/view/head:/debian/patches/04_async_mode.diff
|
||||
patchPhase = ''
|
||||
substituteInPlace ./src/ftdi.c \
|
||||
--replace "ifdef USB_CLASS_PTP" "if 0"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A library to talk to FTDI chips using libusb";
|
||||
homepage = "https://www.intra2net.com/en/developer/libftdi/";
|
||||
license = lib.licenses.lgpl21;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue