depot/third_party/nixpkgs/pkgs/tools/games/joystickwake/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
1.1 KiB
Nix

{ lib, python3, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "joystickwake";
version = "0.4.2";
src = fetchFromGitHub {
owner = "foresto";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-vSvIpbcDIbRyitVjx3wNSxt5vTIZ9/NPWokOJt0p6oQ=";
};
propagatedBuildInputs = with python3.pkgs; [ dbus-next pyudev xlib ];
postInstall = ''
# autostart file
ln -s $out/${python3.sitePackages}/etc $out/etc
'';
meta = with lib; {
description = "Joystick-aware screen waker";
mainProgram = "joystickwake";
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;
};
}