2021-06-28 23:13:55 +00:00
|
|
|
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "joystickwake";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.4.2";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foresto";
|
|
|
|
repo = pname;
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-vSvIpbcDIbRyitVjx3wNSxt5vTIZ9/NPWokOJt0p6oQ=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [ dbus-next pyudev xlib ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
# autostart file
|
|
|
|
ln -s $out/${python3.sitePackages}/etc $out/etc
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Joystick-aware screen waker";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "joystickwake";
|
2021-06-28 23:13:55 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|