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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, stdenv, fetchFromGitHub, fuse, readline, libgcrypt, gmp }:
stdenv.mkDerivation {
pname = "afpfs-ng";
version = "0.8.2";
src = fetchFromGitHub {
owner = "simonvetter";
repo = "afpfs-ng";
rev = "f6e24eb73c9283732c3b5d9cb101a1e2e4fade3e";
sha256 = "125jx1rsqkiifcffyjb05b2s36rllckdgjaf1bay15k9gzhwwldz";
};
# Add workaround for -fno-common toolchains like upstream gcc-10 to
# avoid build failures like:
# ld: afpcmd-cmdline_main.o:/build/source/cmdline/cmdline_afp.h:4: multiple definition of
# `full_url'; afpcmd-cmdline_afp.o:/build/source/cmdline/cmdline_afp.c:27: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
buildInputs = [ fuse readline libgcrypt gmp ];
meta = with lib; {
homepage = "https://github.com/simonvetter/afpfs-ng";
description = "A client implementation of the Apple Filing Protocol";
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
};
}