nixpkgs/pkgs/misc/drivers/xboxdrv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
920 B
Nix
Raw Normal View History

2021-09-19 15:10:39 +00:00
{ lib
, stdenv
, fetchFromGitHub
, 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
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkg-config scons ];
buildInputs = [ libX11 libusb1 boost glib dbus-glib ];
enableParallelBuilding = true;
dontUseSconsInstall = true;
2014-05-29 02:22:34 +00:00
patches = [
./fix-60-sec-delay.patch
./scons-py3.patch
./scons-v4.2.0.patch
./xboxdrvctl-py3.patch
];
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;
maintainers = [ ];
platforms = platforms.linux;
2014-05-29 02:22:34 +00:00
};
}