1 { lib, fetchFromGitHub, python3Packages, libusb1, linuxHeaders
6 buildPythonApplication {
7 pname = "steamcontroller";
8 version = "2017-08-11";
10 src = fetchFromGitHub {
12 repo = "steamcontroller";
13 rev = "80928ce237925e0d0d7a65a45b481435ba6b931e";
14 sha256 = "0lv9j2zv8fmkmc0x9r7fa8zac2xrwfczms35qz1nfa1hr84wniid";
18 substituteInPlace src/uinput.py --replace \
19 "/usr/include" "${linuxHeaders}/include"
22 buildInputs = [ libusb1 ];
23 propagatedBuildInputs = [ psutil python3Packages.libusb1 ];
25 pythonImportsCheck = [ "steamcontroller" ];
28 description = "A standalone Steam controller driver";
29 homepage = "https://github.com/ynsta/steamcontroller";
30 license = licenses.mit;
31 maintainers = with maintainers; [ rnhmjoj ];
32 platforms = platforms.linux;