1 { lib, stdenv, udev, ncurses, pkg-config, fetchurl, bluez }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/dvdhrm/xwiimote/releases/download/xwiimote-${version}/xwiimote-${version}.tar.xz";
9 sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ udev ncurses bluez ];
15 configureFlags = [ "--with-doxygen=no" ];
18 homepage = "https://dvdhrm.github.io/xwiimote";
19 description = "Userspace utilities to control connected Nintendo Wii Remotes";
20 platforms = lib.platforms.linux;
21 license = lib.licenses.mit;
25 mkdir -p "$out/etc/X11/xorg.conf.d/"
26 cp "res/50-xorg-fix-xwiimote.conf" "$out/etc/X11/xorg.conf.d/50-fix-xwiimote.conf"