2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, libusb-compat-0_1 }:
|
2018-07-05 22:04:27 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-02 09:38:45 +00:00
|
|
|
pname = "sixpair";
|
|
|
|
version = "unstable-2007-04-18";
|
2018-07-05 22:04:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://www.pabr.org/sixlinux/sixpair.c";
|
2018-07-05 22:04:27 +00:00
|
|
|
sha256 = "1b0a3k7gs544cbji7n29jxlrsscwfx6s1r2sgwdl6hmkc1l9gagr";
|
|
|
|
};
|
|
|
|
|
|
|
|
# hcitool is depricated
|
|
|
|
patches = [ ./hcitool.patch ];
|
|
|
|
|
2020-04-28 03:29:39 +00:00
|
|
|
buildInputs = [ libusb-compat-0_1 ];
|
2018-07-05 22:04:27 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.pabr.org/sixlinux/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.tomsmeets ];
|
|
|
|
platforms = lib.platforms.linux;
|
2018-07-05 22:04:27 +00:00
|
|
|
};
|
|
|
|
}
|