27 lines
798 B
Nix
Raw Normal View History

2021-01-17 09:30:45 +07:00
{ lib, stdenv, udev, ncurses, pkg-config, fetchurl, bluez }:
stdenv.mkDerivation rec {
2015-06-04 20:22:36 +03:00
name = "xwiimote-2";
src = fetchurl {
2015-06-04 20:22:36 +03:00
url = "https://github.com/dvdhrm/xwiimote/releases/download/${name}/${name}.tar.xz";
sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
};
2021-01-17 09:30:45 +07:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ udev ncurses bluez ];
2018-07-25 17:44:21 -04:00
configureFlags = [ "--with-doxygen=no" ];
meta = {
homepage = "http://dvdhrm.github.io/xwiimote";
description = "Userspace utilities to control connected Nintendo Wii Remotes";
2021-01-15 20:21:58 +07:00
platforms = lib.platforms.linux;
license = lib.licenses.mit;
};
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"
'';
}