at 24.11-pre 40 lines 998 B view raw
1{ lib, stdenv, fetchurl, libusb-compat-0_1 }: 2stdenv.mkDerivation { 3 pname = "sixpair"; 4 version = "unstable-2007-04-18"; 5 6 src = fetchurl { 7 url = "http://www.pabr.org/sixlinux/sixpair.c"; 8 sha256 = "1b0a3k7gs544cbji7n29jxlrsscwfx6s1r2sgwdl6hmkc1l9gagr"; 9 }; 10 11 # hcitool is depricated 12 patches = [ ./hcitool.patch ]; 13 14 buildInputs = [ libusb-compat-0_1 ]; 15 16 unpackPhase = '' 17 cp $src sixpair.c 18 ''; 19 20 buildPhase = '' 21 cc -o sixpair sixpair.c -lusb 22 ''; 23 24 installPhase = '' 25 mkdir -p $out/bin 26 cp sixpair $out/bin/sixpair 27 ''; 28 29 meta = { 30 description = "Pair with SIXAXIS controllers over USB"; 31 longDescription = '' 32 This command-line utility searches USB buses for SIXAXIS controllers and tells them to connect to a new Bluetooth master. 33 ''; 34 homepage = "http://www.pabr.org/sixlinux/"; 35 license = lib.licenses.gpl2Only; 36 maintainers = [ lib.maintainers.tomsmeets ]; 37 platforms = lib.platforms.linux; 38 mainProgram = "sixpair"; 39 }; 40}