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
39
pkgs/tools/misc/sixpair/default.nix
Normal file
39
pkgs/tools/misc/sixpair/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, libusb-compat-0_1 }:
|
||||
stdenv.mkDerivation {
|
||||
pname = "sixpair";
|
||||
version = "unstable-2007-04-18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.pabr.org/sixlinux/sixpair.c";
|
||||
sha256 = "1b0a3k7gs544cbji7n29jxlrsscwfx6s1r2sgwdl6hmkc1l9gagr";
|
||||
};
|
||||
|
||||
# hcitool is depricated
|
||||
patches = [ ./hcitool.patch ];
|
||||
|
||||
buildInputs = [ libusb-compat-0_1 ];
|
||||
|
||||
unpackPhase = ''
|
||||
cp $src sixpair.c
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
cc -o sixpair sixpair.c -lusb
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp sixpair $out/bin/sixpair
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Pair with SIXAXIS controllers over USB";
|
||||
longDescription = ''
|
||||
This command-line utility searches USB buses for SIXAXIS controllers and tells them to connect to a new Bluetooth master.
|
||||
'';
|
||||
homepage = "http://www.pabr.org/sixlinux/";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [ lib.maintainers.tomsmeets ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue