nixpkgs/pkgs/by-name/xw/xwiimote/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
994 B
Nix
Raw Normal View History

{
lib,
stdenv,
udev,
ncurses,
pkg-config,
fetchFromGitHub,
autoreconfHook,
}:
stdenv.mkDerivation {
2021-08-12 22:00:21 +01:00
pname = "xwiimote";
version = "2-unstable-2024-02-29";
2021-08-12 22:00:21 +01:00
src = fetchFromGitHub {
owner = "xwiimote";
repo = "xwiimote";
rev = "4df713d9037d814cc0c64197f69e5c78d55caaf1";
hash = "sha256-y68bi62H7ErVekcs0RZUXPpW+QJ97sTQP4lajB9PsgU=";
};
2018-07-25 22:44:21 +01:00
configureFlags = [ "--with-doxygen=no" ];
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"
'';
meta = {
homepage = "https://xwiimote.github.io/xwiimote/";
description = "Userspace utilities to control connected Nintendo Wii Remotes";
mainProgram = "xwiishow";
2021-01-15 13:21:58 +00:00
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}