587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
29 lines
637 B
Nix
29 lines
637 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage
|
|
, evdev, pyudev
|
|
, bluez
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ds4drv";
|
|
version = "0.5.1";
|
|
format = "setuptools";
|
|
|
|
# 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";
|
|
mainProgram = "ds4drv";
|
|
homepage = "https://github.com/chrippa/ds4drv";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|