depot/third_party/nixpkgs/pkgs/tools/games/joystickwake/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

31 lines
1 KiB
Nix

{ lib, python3, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "joystickwake";
version = "0.3";
src = fetchFromGitHub {
owner = "foresto";
repo = pname;
rev = "v${version}";
sha256 = "0f990bvykjjq2rzzbm158kajnqxigfzcrzap11dc415wkvn25k6q";
};
propagatedBuildInputs = with python3.pkgs; [ pyudev xlib ];
postInstall = ''
# autostart file
ln -s $out/${python3.sitePackages}/etc $out/etc
'';
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;
};
}