1 { lib, python3, fetchFromGitHub }:
2 python3.pkgs.buildPythonApplication rec {
3 pname = "joystickwake";
6 src = fetchFromGitHub {
10 sha256 = "0f990bvykjjq2rzzbm158kajnqxigfzcrzap11dc415wkvn25k6q";
13 propagatedBuildInputs = with python3.pkgs; [ pyudev xlib ];
17 ln -s $out/${python3.sitePackages}/etc $out/etc
21 description = "A joystick-aware screen waker";
23 Linux gamers often find themselves unexpectedly staring at a blank screen, because their display server fails to recognize game controllers as input devices, allowing the screen blanker to activate during gameplay.
24 This program works around the problem by temporarily disabling screen blankers when joystick activity is detected.
26 homepage = "https://github.com/foresto/joystickwake";
27 maintainers = with maintainers; [ bertof ];
28 license = licenses.mit;
29 platforms = platforms.linux;