2016-06-18 18:26:45 +02:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage
|
|
|
|
, evdev, pyudev
|
|
|
|
, bluez
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "ds4drv";
|
|
|
|
name = "${pname}-${version}";
|
2016-06-18 18:26:45 +02:00
|
|
|
version = "0.5.1";
|
|
|
|
|
|
|
|
# PyPi only carries py3 wheel
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrippa";
|
|
|
|
repo = "ds4drv";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ evdev pyudev ];
|
|
|
|
|
|
|
|
buildInputs = [ bluez ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Userspace driver for the DualShock 4 controller";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/chrippa/ds4drv;
|
2016-06-18 18:26:45 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|