carrot69 / keep-presence

Keeps your computer awake by moving the mouse or pressing a key when you step away.
Creative Commons Zero v1.0 Universal
261 stars 39 forks source link

Enable as a nix package #8

Closed mwdomino closed 2 years ago

mwdomino commented 2 years ago

Howdy! I love keep-presence, it's been keeping my icon green on Slack/Teams for a few years now :)

I recently moved my work PC over to NixOS which uses the nix package manager, a declarative method with which to configure and build Linux systems/packages. Part of this system is that it's all but impossible to install interpreters, build native dependencies, or any other work that would potentially result in a 'dirty' filesystem. As such, all packages for nix must include all of the dependencies required to run the application so it can be appropriately sandboxed.

I've forked this repo and have an open PR for a nixpkg at https://github.com/NixOS/nixpkgs/pull/163469. The only changes to support the nix packaging method were:

No pressure at all if you are not interested in integrating these changes into your repository but I wanted to make them available to you since your tool has helped me out so much. I've built the nixpkg off of my fork and have attributed to your repo as the 'author'. If you'd like to merge these I'll update the nixpkg to point back to your repo, if not I'll just keep an eye on it and maintain my fork as needed.

Thanks again!

carrot69 commented 2 years ago

Hi @mwdomino!

I'm very glad that you use keep-presence and you enjoy it.

The PR is good to me, I'll merge it ;)

carrot69 commented 2 years ago

@mwdomino there was a typo in the setup.py file, in the version number; just for you to know if you use your fork in here https://github.com/NixOS/nixpkgs/pull/163469