activitywatch: init at 0.12.2#202935
activitywatch: init at 0.12.2#202935SuperSandro2000 merged 7 commits intoNixOS:masterfrom huantianad:activitywatch
Conversation
|
What's the state of activitywatch packaging? Is there anything that I could help with? |
|
I was planning to wait for 0.12.2 since it should include some small patches to help with packaging, but that seems like it'll take a bit. I'll continue working on this, the main thing to consider are mostly design choices, like making a single package that combines server + qt + watchers, or a nixos module for autostart. |
|
I've updated some of the python modules and added some tests, along with general cleanup in this latest change. I was wondering, is there a good way to combine the individual derivations for each component into one large Alternatively, maybe a NixOS module would be a good way to do it to, to allow for autostart? |
Module sound reasonable for that. Not sure if there's something additional that could be done. EDIT: tested it a little bit and it seems that some basic functionality works! Thank you for work on that. |
|
@noisersup I'll work on the systemd unit, lemme know if you find any bugs! I'm also using this on my daily driver machine, so far it's been pretty good but I don't use it super intensively either, so it's nice to have some more bug testers :) |
|
Hm, so many random hiccups. I decided to create a wrapper for all the different programs that are a part of activitywatch, that simply However, it seems that using I'm not sure if it's even worth it to create a single derivation combining all the sub-programs. Should we just direct users to use the NixOS module, or manually add each component to their system packages? In addition, there's still issues on KDE Plasma where P.S. Am I correct in using |
|
FYI, in case it's relevant: I cannot seem to build |
|
Ah, this should be due to 4329de1, I'll rebase on master then make a fix for it. Thanks for the catch! |
|
I've decided that the I also think that this package is in a state that's ready to be merged. The two main features that I'd like to add would be NixOS module and running integration tests with NixOS test. However, neither are priority and I think it's fine if we add them later. PS is there anything I should do regarding the |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2137 |
|
@SuperSandro2000 thanks for the review! I've left some comments regarding tests and the symlink join. I haven't squashed the changes yet, hopefully that's fine. |
jonringer
left a comment
There was a problem hiding this comment.
Not sure if possible, but it would be nice to add Cargo.lock as a patch. It's considered best practice for executables in rust to version control their lock file.
Please follow CONTRIBUTING.md and manual#submitting-changes-making-patches and squash the fix-up commits.
git rebase -i is a powerful command which achieves this, I created a small video demonstrating it's use here. A more indepth text tutorial can be found here
|
Regarding the I'll go ahead and rebase, I wasn't sure if I should squash the fixes before they were approved or not, so I erred on the side of doing less. I'll just squash any changes immediately instead of pushing them in the future, thanks for the resources! |
SuperSandro2000
left a comment
There was a problem hiding this comment.
Please add a pythonImportsCheck to all packages. I think the rest is looking good.
|
@SuperSandro2000 done! Let me know if there's anything I can do to get |
|
Awesome job, thanks @huantianad! ❤️ |
|
Been waiting a while for this. Thank you! ❤️ |
Description of changes
Resolves #97379, ActivityWatch/activitywatch#556.
PR still very WIP and looking for feedback!
Packages 3rd party python modules dependencies under
python3Packages, as well asaw-coreandaw-clientas they're used for making custom watchers. Other parts of the application are packaged normally underall-packages.nixTODO
Related issues
#59026
ActivityWatch/activitywatch#556
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes