From 6dcbd3d153fd4831f4d0bf5218cb7549396f80a7 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Wed, 14 Aug 2024 15:46:02 -0400 Subject: [PATCH] xwiimote: 2 -> 2-unstable-2024-02-29 Includes many fixes and patches that are not in the latest released version --- pkgs/by-name/xw/xwiimote/package.nix | 51 +++++++++++++++++++--------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/xw/xwiimote/package.nix b/pkgs/by-name/xw/xwiimote/package.nix index 14f22c9463ed..a17299197d27 100644 --- a/pkgs/by-name/xw/xwiimote/package.nix +++ b/pkgs/by-name/xw/xwiimote/package.nix @@ -1,29 +1,48 @@ -{ lib, stdenv, udev, ncurses, pkg-config, fetchurl, bluez }: +{ + lib, + stdenv, + udev, + ncurses, + pkg-config, + fetchFromGitHub, + bluez, + autoreconfHook, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation { pname = "xwiimote"; - version = "2"; + version = "2-unstable-2024-02-29"; - src = fetchurl { - url = "https://github.com/dvdhrm/xwiimote/releases/download/xwiimote-${version}/xwiimote-${version}.tar.xz"; - sha256 = "1g9cbhblll47l300zr999xr51x2g98y49l222f77fhswd12kjzhd"; + src = fetchFromGitHub { + owner = "xwiimote"; + repo = "xwiimote"; + rev = "4df713d9037d814cc0c64197f69e5c78d55caaf1"; + hash = "sha256-y68bi62H7ErVekcs0RZUXPpW+QJ97sTQP4lajB9PsgU="; }; - 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; - }; + 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 ]; + }; }