2024-08-14 20:46:02 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
udev,
|
|
|
|
ncurses,
|
|
|
|
pkg-config,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
}:
|
2014-08-25 11:45:52 +01:00
|
|
|
|
2024-08-14 20:46:02 +01:00
|
|
|
stdenv.mkDerivation {
|
2021-08-12 22:00:21 +01:00
|
|
|
pname = "xwiimote";
|
2024-08-14 20:46:02 +01:00
|
|
|
version = "2-unstable-2024-02-29";
|
2021-08-12 22:00:21 +01:00
|
|
|
|
2024-08-14 20:46:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xwiimote";
|
|
|
|
repo = "xwiimote";
|
|
|
|
rev = "4df713d9037d814cc0c64197f69e5c78d55caaf1";
|
|
|
|
hash = "sha256-y68bi62H7ErVekcs0RZUXPpW+QJ97sTQP4lajB9PsgU=";
|
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
|
|
|
|
2024-08-14 20:46:02 +01:00
|
|
|
buildInputs = [
|
|
|
|
udev
|
|
|
|
ncurses
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2014-08-25 11:45:52 +01:00
|
|
|
meta = {
|
2024-08-14 20:46:02 +01:00
|
|
|
homepage = "https://xwiimote.github.io/xwiimote/";
|
2014-08-25 11:45:52 +01: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;
|
2024-08-14 20:46:02 +01:00
|
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
2014-08-25 11:45:52 +01:00
|
|
|
};
|
|
|
|
}
|