nixpkgs/pkgs/misc/drivers/steamcontroller/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 lines
921 B
Nix

{ lib, fetchFromGitHub, python3Packages, libusb1, linuxHeaders
}:
with python3Packages;
buildPythonApplication {
pname = "steamcontroller";
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; {
description = "Standalone Steam controller driver";
homepage = "https://github.com/ynsta/steamcontroller";
license = licenses.mit;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
};
}