nixpkgs/pkgs/misc/drivers/steamcontroller/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
921 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python3Packages, libusb1, linuxHeaders
2017-12-30 10:52:24 +00:00
}:
with python3Packages;
2019-08-13 21:52:01 +00:00
buildPythonApplication {
pname = "steamcontroller";
2017-12-30 10:52:24 +00:00
version = "2017-08-11";
src = fetchFromGitHub {
owner = "ynsta";
repo = "steamcontroller";
rev = "80928ce237925e0d0d7a65a45b481435ba6b931e";
sha256 = "0lv9j2zv8fmkmc0x9r7fa8zac2xrwfczms35qz1nfa1hr84wniid";
};
postPatch = ''
substituteInPlace src/uinput.py --replace \
"/usr/include" "${linuxHeaders}/include"
'';
buildInputs = [ libusb1 ];
propagatedBuildInputs = [ psutil python3Packages.libusb1 ];
doCheck = false;
pythonImportsCheck = [ "steamcontroller" ];
meta = with lib; {
2017-12-30 10:52:24 +00:00
description = "Standalone Steam controller driver";
homepage = "https://github.com/ynsta/steamcontroller";
2017-12-30 10:52:24 +00:00
license = licenses.mit;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
};
}