2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage
|
|
|
|
, evdev, pyudev
|
|
|
|
, bluez
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ds4drv";
|
|
|
|
version = "0.5.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ds4drv";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/chrippa/ds4drv";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|