2020-07-17 23:30:28 +00:00
|
|
|
{ stdenv, fetchurl, sconsPackages, libX11, pkgconfig
|
2018-02-25 02:23:58 +00:00
|
|
|
, libusb1, boost, glib, dbus-glib }:
|
2014-05-29 02:22:34 +00:00
|
|
|
|
|
|
|
let
|
2016-02-10 03:45:01 +00:00
|
|
|
version = "0.8.8";
|
2014-05-29 02:22:34 +00:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "xboxdrv";
|
|
|
|
inherit version;
|
2014-05-29 02:22:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-10 03:45:01 +00:00
|
|
|
url = "https://github.com/xboxdrv/xboxdrv/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
|
2014-05-29 02:22:34 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-07-17 23:30:28 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig sconsPackages.scons_3_1_2 ];
|
2020-03-27 13:47:48 +00:00
|
|
|
buildInputs = [ libX11 libusb1 boost glib dbus-glib ];
|
2018-11-14 19:57:41 +00:00
|
|
|
dontUseSconsInstall = true;
|
2014-05-29 02:22:34 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pingus.seul.org/~grumbel/xboxdrv/";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|