2021-06-23 12:19:30 +00:00
|
|
|
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "joystickwake";
|
2023-05-14 18:31:47 +00:00
|
|
|
version = "0.4.1";
|
2021-06-23 12:19:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foresto";
|
|
|
|
repo = pname;
|
2023-02-05 21:59:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-14 18:31:47 +00:00
|
|
|
sha256 = "sha256-qf1owRdBGyU3q9ZJAzDEcMlnHfeUMSXga4v6QXdxXO0=";
|
2021-06-23 12:19:30 +00:00
|
|
|
};
|
|
|
|
|
2023-02-08 18:28:46 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [ dbus-next pyudev xlib ];
|
2021-06-23 12:19:30 +00:00
|
|
|
|
2022-03-26 21:56:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
# autostart file
|
|
|
|
ln -s $out/${python3.sitePackages}/etc $out/etc
|
|
|
|
'';
|
|
|
|
|
2021-06-23 12:19:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A joystick-aware screen waker";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
This program works around the problem by temporarily disabling screen blankers when joystick activity is detected.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/foresto/joystickwake";
|
|
|
|
maintainers = with maintainers; [ bertof ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|