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,44 @@
{ lib
, stdenv
, fetchFromGitHub
, scons
, libX11
, pkg-config
, libusb1
, boost
, glib
, dbus-glib
}:
stdenv.mkDerivation rec {
pname = "xboxdrv";
version = "0.8.8";
src = fetchFromGitHub {
owner = "xboxdrv";
repo = "xboxdrv";
rev = "v${version}";
hash = "sha256-R0Bt4xfzQA1EmZbf7lcWLwSSUayf5Y711QhlAVhiLrY=";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkg-config scons ];
buildInputs = [ libX11 libusb1 boost glib dbus-glib ];
enableParallelBuilding = true;
dontUseSconsInstall = true;
patches = [
./fix-60-sec-delay.patch
./scons-py3.patch
./scons-v4.2.0.patch
./xboxdrvctl-py3.patch
];
meta = with lib; {
homepage = "https://xboxdrv.gitlab.io/";
description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux;
};
}