depot/third_party/nixpkgs/pkgs/misc/drivers/xwiimote/default.nix
Default email 1ae14203fc Project import generated by Copybara.
GitOrigin-RevId: 68398d2dd50efc2d878bf0f83bbc8bc323b6b0e0
2021-01-17 01:15:33 +01:00

26 lines
796 B
Nix

{ lib, stdenv, udev, ncurses, pkgconfig, fetchurl, bluez }:
stdenv.mkDerivation rec {
name = "xwiimote-2";
src = fetchurl {
url = "https://github.com/dvdhrm/xwiimote/releases/download/${name}/${name}.tar.xz";
sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ udev ncurses bluez ];
configureFlags = [ "--with-doxygen=no" ];
meta = {
homepage = "http://dvdhrm.github.io/xwiimote";
description = "Userspace utilities to control connected Nintendo Wii Remotes";
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"
'';
}