2014-08-25 11:45:52 +01:00
|
|
|
{ stdenv, udev, ncurses, pkgconfig, fetchurl, bluez }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-04 18:22:36 +01:00
|
|
|
name = "xwiimote-2";
|
2014-08-25 11:45:52 +01:00
|
|
|
src = fetchurl {
|
2015-06-04 18:22:36 +01:00
|
|
|
url = "https://github.com/dvdhrm/xwiimote/releases/download/${name}/${name}.tar.xz";
|
2014-08-25 11:45:52 +01:00
|
|
|
sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ udev ncurses bluez ];
|
2014-08-25 11:45:52 +01:00
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-doxygen=no" ];
|
2014-08-25 11:45:52 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://dvdhrm.github.io/xwiimote";
|
2014-08-25 11:45:52 +01:00
|
|
|
description = "Userspace utilities to control connected Nintendo Wii Remotes";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-07-22 15:56:08 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-08-25 11:45:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
}
|