-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
activitywatch: init at 0.12.1 #214085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
activitywatch: init at 0.12.1 #214085
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { config, lib, stdenv, fetchzip, qt6, wrapGAppsNoGuiHook, glib-networking | ||
| , autoPatchelfHook }: | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| pname = "ActivityWatch"; | ||
| version = "0.12.1"; | ||
|
|
||
| src = fetchzip { | ||
| url = | ||
| "https://github.com/ActivityWatch/activitywatch/releases/download/v${version}/activitywatch-v${version}-linux-x86_64.zip"; | ||
| hash = "sha256-VdnAKcLQBWBVZqRyD1xoYuAfvTeCtcFJp3/slkQ6ynk="; | ||
| }; | ||
|
|
||
| buildInputs = [ qt6.qtbase glib-networking ]; | ||
| nativeBuildInputs = [ autoPatchelfHook wrapGAppsNoGuiHook ]; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not compile from source?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. activitywatch is composed of a lot of small services, the derivation proposed in the related issue is 380 lines long
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. which is preferable if someone already has done the work
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll try, what do you recommend for node packages? buildNpmPackage? |
||
| dontWrapQtApps = true; | ||
|
|
||
| installPhase = '' | ||
| installed=$out/opt/activitywatch | ||
| mkdir -p $out/bin $out/share/applications $out/opt/activitywatch | ||
| mv * $installed | ||
|
|
||
| # Symlink executables to /bin | ||
| ln -s $installed/aw-qt $out/bin/aw-qt | ||
| for name in aw-server aw-server-rust aw-watcher-afk aw-watcher-window; do | ||
| ln -s $installed/$name/$name $out/bin/$name | ||
| done | ||
|
|
||
| # Add .desktop file to share/applications | ||
| cp $installed/aw-qt.desktop $out/share/applications | ||
|
|
||
| # Add logo to share/icons | ||
| mkdir -p $out/share/icons/hicolor/{128x128,512x512}/apps | ||
| ln -s $installed/media/logo/logo.png $out/share/icons/hicolor/512x512/apps/activitywatch.png | ||
| ln -s $installed/media/logo/logo-128.png $out/share/icons/hicolor/128x128/apps/activitywatch.png | ||
| ''; | ||
|
|
||
| meta = with lib; { | ||
| description = | ||
| "ActivityWatch is an app that automatically tracks how you spend time on your devices."; | ||
|
chaoky marked this conversation as resolved.
Outdated
|
||
| longDescription = '' | ||
| ActivityWatch is an app that automatically tracks how you spend time on your devices. | ||
| It is open source, privacy-first, cross-platform, and a great alternative to services like RescueTime, ManicTime, and WakaTime. | ||
| It can be used to keep track of your productivity, time spent on different projects, bad screen habits, or just to understand how you spend your time. | ||
| ''; | ||
| homepage = "https://github.com/ActivityWatch/activitywatch"; | ||
| license = licenses.mpl20; | ||
| platforms = platforms.linux; | ||
| maintainers = with maintainers; [ chaoky ]; | ||
| }; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.