diff options
author | Cray Elliott <MP2E@archlinux.us> | 2014-08-25 03:45:52 -0700 |
---|---|---|
committer | Cray Elliott <MP2E@archlinux.us> | 2014-11-08 20:44:25 -0800 |
commit | 6349ff15b180df913d7ad1274eb7ef75fbeff584 (patch) | |
tree | cecedd49c08ac20a5c4e8b253cad571f519a20b3 /pkgs | |
parent | e47c1c1829d18feea66fef41278a675ad827a0f8 (diff) |
add xwiimote, a linux-only userspace driver for wiimotes
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/misc/drivers/xwiimote/default.nix | 24 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 6 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/xwiimote/default.nix b/pkgs/misc/drivers/xwiimote/default.nix new file mode 100644 index 000000000000..75e071a05ef1 --- /dev/null +++ b/pkgs/misc/drivers/xwiimote/default.nix @@ -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 = '' + 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" + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 65a06c70510c..688d4cf30085 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |