2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libusb-compat-0_1 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "sixpair";
|
|
|
|
version = "unstable-2007-04-18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.pabr.org/sixlinux/sixpair.c";
|
|
|
|
sha256 = "1b0a3k7gs544cbji7n29jxlrsscwfx6s1r2sgwdl6hmkc1l9gagr";
|
|
|
|
};
|
|
|
|
|
|
|
|
# hcitool is depricated
|
|
|
|
patches = [ ./hcitool.patch ];
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [ libusb-compat-0_1 ];
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.pabr.org/sixlinux/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.tomsmeets ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "sixpair";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|