Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
808 B · 44 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ lib, fetchFromGitHub, buildPythonPackage, evdev, pyudev, bluez, setuptools,}:
buildPythonPackage rec { pname = "ds4drv"; version = "0.5.1";
pyproject = true; build-system = [ setuptools ];
# PyPi only carries py3 wheel src = fetchFromGitHub { owner = "chrippa"; repo = "ds4drv"; rev = "v${version}"; sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v"; };
postPatch = '' substituteInPlace ds4drv/config.py \ --replace-fail SafeConfigParser ConfigParser '';
dependencies = [ 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; };}