Skip to content

Commit

Permalink
add xwiimote, a linux-only userspace driver for wiimotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cray Elliott authored and Cray Elliott committed Nov 9, 2014
1 parent e47c1c1 commit 6349ff1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkgs/misc/drivers/xwiimote/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, udev, ncurses, pkgconfig, fetchurl, bluez }:

stdenv.mkDerivation rec {
name = "xwiimote";
src = fetchurl {
url = "https://github.com/dvdhrm/xwiimote/releases/download/xwiimote-2/xwiimote-2.tar.xz";
sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
};

buildInputs = [ udev ncurses pkgconfig bluez ];

configureFlags = "--with-doxygen=no";

meta = {
homepage = http://dvdhrm.github.io/xwiimote;
description = "Userspace utilities to control connected Nintendo Wii Remotes";
platforms = stdenv.lib.platforms.linux;
};

postInstallPhase = ''

This comment has been minimized.

Copy link
@marvin2k

marvin2k Oct 20, 2016

postInstallPhase? did you rather mean postInstall? Take this with a grain of salt. Am one of the new guys, and stumbled over this while grepping...

mkdir -p "$out/etc/X11/xorg.conf.d/"
cp "res/50-xorg-fix-xwiimote.conf" "$out/etc/X11/xorg.conf.d/50-fix-xwiimote.conf"
'';
}
6 changes: 6 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12635,6 +12635,12 @@ let
saneBackends = saneBackends;
};

xwiimote = callPackage ../misc/drivers/xwiimote {
bluez = pkgs.bluez5.override {
enableWiimote = true;
};
};

yafc = callPackage ../applications/networking/yafc { };

yandex-disk = callPackage ../tools/filesystems/yandex-disk { };
Expand Down

0 comments on commit 6349ff1

Please sign in to comment.