2021-01-17 02:30:45 +00:00
|
|
|
{ lib, stdenv, udev, ncurses, pkg-config, fetchurl, bluez }:
|
2014-08-25 10:45:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 21:00:21 +00:00
|
|
|
pname = "xwiimote";
|
|
|
|
version = "2";
|
|
|
|
|
2014-08-25 10:45:52 +00:00
|
|
|
src = fetchurl {
|
2021-08-12 21:00:21 +00:00
|
|
|
url = "https://github.com/dvdhrm/xwiimote/releases/download/xwiimote-${version}/xwiimote-${version}.tar.xz";
|
2014-08-25 10:45:52 +00:00
|
|
|
sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ udev ncurses bluez ];
|
2014-08-25 10:45:52 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--with-doxygen=no" ];
|
2014-08-25 10:45:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://dvdhrm.github.io/xwiimote";
|
2014-08-25 10:45:52 +00:00
|
|
|
description = "Userspace utilities to control connected Nintendo Wii Remotes";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "xwiishow";
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.mit;
|
2014-08-25 10:45:52 +00: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"
|
|
|
|
'';
|
|
|
|
}
|