2014-05-29 04:22:34 +02:00
|
|
|
{ stdenv, fetchurl, scons, libX11, pkgconfig
|
2018-02-25 03:23:58 +01:00
|
|
|
, libusb1, boost, glib, dbus-glib }:
|
2014-05-29 04:22:34 +02:00
|
|
|
|
|
|
|
let
|
2016-02-10 04:45:01 +01:00
|
|
|
version = "0.8.8";
|
2014-05-29 04:22:34 +02:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "xboxdrv-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-10 04:45:01 +01:00
|
|
|
url = "https://github.com/xboxdrv/xboxdrv/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
|
2014-05-29 04:22:34 +02:00
|
|
|
};
|
|
|
|
|
2018-11-14 20:57:41 +01:00
|
|
|
makeFlags = "PREFIX=$(out)";
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-11-14 20:57:41 +01:00
|
|
|
buildInputs = [ scons libX11 libusb1 boost glib dbus-glib ];
|
|
|
|
dontUseSconsInstall = true;
|
2014-05-29 04:22:34 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://pingus.seul.org/~grumbel/xboxdrv/;
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Xbox/Xbox360 (and more) gamepad driver for Linux that works in userspace";
|
2014-05-29 04:22:34 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.fuuzetsu ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2014-05-29 04:22:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|