2021-09-19 15:10:39 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-02-21 22:13:57 +00:00
|
|
|
, scons
|
2021-09-19 15:10:39 +00:00
|
|
|
, libX11
|
|
|
|
, pkg-config
|
|
|
|
, libusb1
|
|
|
|
, boost
|
|
|
|
, glib
|
|
|
|
, dbus-glib
|
|
|
|
}:
|
2014-05-29 02:22:34 +00:00
|
|
|
|
2021-10-12 17:58:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "xboxdrv";
|
2021-10-12 17:58:04 +00:00
|
|
|
version = "0.8.8";
|
2014-05-29 02:22:34 +00:00
|
|
|
|
2021-09-19 15:10:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xboxdrv";
|
|
|
|
repo = "xboxdrv";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-R0Bt4xfzQA1EmZbf7lcWLwSSUayf5Y711QhlAVhiLrY=";
|
2014-05-29 02:22:34 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2022-02-21 22:13:57 +00:00
|
|
|
nativeBuildInputs = [ pkg-config scons ];
|
2020-03-27 13:47:48 +00:00
|
|
|
buildInputs = [ libX11 libusb1 boost glib dbus-glib ];
|
2022-02-21 22:13:57 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-11-14 19:57:41 +00:00
|
|
|
dontUseSconsInstall = true;
|
2014-05-29 02:22:34 +00:00
|
|
|
|
2022-02-21 22:13:57 +00:00
|
|
|
patches = [
|
|
|
|
./fix-60-sec-delay.patch
|
|
|
|
./scons-py3.patch
|
|
|
|
./scons-v4.2.0.patch
|
|
|
|
./xboxdrvctl-py3.patch
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-07-31 19:47:19 +00:00
|
|
|
homepage = "https://xboxdrv.gitlab.io/";
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace";
|
2014-05-29 02:22:34 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = [ ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2014-05-29 02:22:34 +00:00
|
|
|
};
|
|
|
|
}
|