Merge pull request #334769 from pyrox0/xwiimote

xwiimote: 2 -> 2-unstable-2024-02-29
This commit is contained in:
Peder Bergebakken Sundt 2024-08-17 04:46:19 +02:00 committed by GitHub
commit 500c3e5a5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 48 additions and 31 deletions

View File

@ -0,0 +1,48 @@
{
lib,
stdenv,
udev,
ncurses,
pkg-config,
fetchFromGitHub,
bluez,
autoreconfHook,
}:
stdenv.mkDerivation {
pname = "xwiimote";
version = "2-unstable-2024-02-29";
src = fetchFromGitHub {
owner = "xwiimote";
repo = "xwiimote";
rev = "4df713d9037d814cc0c64197f69e5c78d55caaf1";
hash = "sha256-y68bi62H7ErVekcs0RZUXPpW+QJ97sTQP4lajB9PsgU=";
};
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";
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}

View File

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

View File

@ -39470,8 +39470,6 @@ with pkgs;
xva-img = callPackage ../tools/virtualization/xva-img { }; xva-img = callPackage ../tools/virtualization/xva-img { };
xwiimote = callPackage ../misc/drivers/xwiimote { };
xzoom = callPackage ../tools/X11/xzoom { }; xzoom = callPackage ../tools/X11/xzoom { };
yacreader = libsForQt5.callPackage ../applications/graphics/yacreader { }; yacreader = libsForQt5.callPackage ../applications/graphics/yacreader { };