-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add xwiimote, a linux-only userspace driver for wiimotes
- Loading branch information
Cray Elliott
authored and
Cray Elliott
committed
Nov 9, 2014
1 parent
e47c1c1
commit 6349ff1
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong. |
||
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" | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postInstallPhase
? did you rather meanpostInstall
? Take this with a grain of salt. Am one of the new guys, and stumbled over this while grepping...