Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 584 B view raw
1{ lib, fetchFromGitHub, buildPythonPackage 2, evdev, pyudev 3, bluez 4}: 5 6buildPythonPackage rec { 7 pname = "ds4drv"; 8 version = "0.5.1"; 9 10 # PyPi only carries py3 wheel 11 src = fetchFromGitHub { 12 owner = "chrippa"; 13 repo = "ds4drv"; 14 rev = "v${version}"; 15 sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v"; 16 }; 17 18 propagatedBuildInputs = [ evdev pyudev ]; 19 20 buildInputs = [ bluez ]; 21 22 meta = { 23 description = "Userspace driver for the DualShock 4 controller"; 24 homepage = "https://github.com/chrippa/ds4drv"; 25 license = lib.licenses.mit; 26 }; 27}