nixpkgs-suyu/pkgs/misc/drivers/xboxdrv/default.nix
QuantMint 112918938f
xboxdrv: bump scons (#158405)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-02-21 23:13:57 +01:00

44 lines
920 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, scons
, libX11
, pkg-config
, libusb1
, boost
, glib
, dbus-glib
}:
stdenv.mkDerivation rec {
pname = "xboxdrv";
version = "0.8.8";
src = fetchFromGitHub {
owner = "xboxdrv";
repo = "xboxdrv";
rev = "v${version}";
hash = "sha256-R0Bt4xfzQA1EmZbf7lcWLwSSUayf5Y711QhlAVhiLrY=";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkg-config scons ];
buildInputs = [ libX11 libusb1 boost glib dbus-glib ];
enableParallelBuilding = true;
dontUseSconsInstall = true;
patches = [
./fix-60-sec-delay.patch
./scons-py3.patch
./scons-v4.2.0.patch
./xboxdrvctl-py3.patch
];
meta = with lib; {
homepage = "https://xboxdrv.gitlab.io/";
description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.linux;
};
}