diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-21 19:55:35 +0100 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-02-07 22:37:16 +0100 |
| commit | 2e962f4b89870c466b61843ec1a568ccf87171d8 (patch) | |
| tree | bf3a70285ce9f9f27839d123a59312e91499bf33 /gnu/packages/monitoring.scm | |
| parent | 89c8cf9f5949f0f6a947564748e1d9fb3e45c463 (diff) | |
gnu: Add aw-server-rust.
* gnu/packages/monitoring.scm (aw-server-rust): New variable.
* gnu/packages/rust-crates.scm: Record aw-server-rust cargo-inputs.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/monitoring.scm')
| -rw-r--r-- | gnu/packages/monitoring.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index 1c8990de31a..ad16d9abe64 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm | |||
| @@ -41,6 +41,7 @@ | |||
| 41 | #:use-module (guix download) | 41 | #:use-module (guix download) |
| 42 | #:use-module (guix git-download) | 42 | #:use-module (guix git-download) |
| 43 | #:use-module ((guix licenses) #:prefix license:) | 43 | #:use-module ((guix licenses) #:prefix license:) |
| 44 | #:use-module (guix build-system cargo) | ||
| 44 | #:use-module (guix build-system pyproject) | 45 | #:use-module (guix build-system pyproject) |
| 45 | #:use-module (guix build-system python) | 46 | #:use-module (guix build-system python) |
| 46 | #:use-module (guix build-system gnu) | 47 | #:use-module (guix build-system gnu) |
| @@ -83,6 +84,7 @@ | |||
| 83 | #:use-module (gnu packages qt) | 84 | #:use-module (gnu packages qt) |
| 84 | #:use-module (gnu packages rrdtool) | 85 | #:use-module (gnu packages rrdtool) |
| 85 | #:use-module (gnu packages sphinx) | 86 | #:use-module (gnu packages sphinx) |
| 87 | #:use-module (gnu packages sqlite) | ||
| 86 | #:use-module (gnu packages time) | 88 | #:use-module (gnu packages time) |
| 87 | #:use-module (gnu packages tls) | 89 | #:use-module (gnu packages tls) |
| 88 | #:use-module (gnu packages web) | 90 | #:use-module (gnu packages web) |
| @@ -217,6 +219,51 @@ | |||
| 217 | (description | 219 | (description |
| 218 | "This package provides a tray icon for @code{ActivityWatch}."))) | 220 | "This package provides a tray icon for @code{ActivityWatch}."))) |
| 219 | 221 | ||
| 222 | (define-public aw-server-rust | ||
| 223 | (let ((commit "d40d712cff2c1d5621b86e401e32076d2beef737") | ||
| 224 | (revision "1")) | ||
| 225 | (package | ||
| 226 | (name "aw-server-rust") | ||
| 227 | (version "0.13.1") | ||
| 228 | (source | ||
| 229 | (origin | ||
| 230 | (method git-fetch) | ||
| 231 | (uri (git-reference | ||
| 232 | (url "https://github.com/ActivityWatch/aw-server-rust") | ||
| 233 | (commit commit))) | ||
| 234 | (file-name (git-file-name name version)) | ||
| 235 | (sha256 | ||
| 236 | (base32 "1v4693xv99nq0kvclihgxiydnfxpyx748n1siyayw2ifkw9sw64m")))) | ||
| 237 | (build-system cargo-build-system) | ||
| 238 | (arguments | ||
| 239 | (list | ||
| 240 | #:install-source? #f | ||
| 241 | #:cargo-test-flags | ||
| 242 | '(list "--release" "--" | ||
| 243 | ;; Permission errors | ||
| 244 | "--skip=test::test_full" | ||
| 245 | "--skip=datastore_tests::test_datastore_reload" | ||
| 246 | "--skip=dirs::test_get_dirs") | ||
| 247 | #:phases | ||
| 248 | #~(modify-phases %standard-phases | ||
| 249 | (add-after 'unpack 'disable-vendored-features | ||
| 250 | (lambda _ | ||
| 251 | (substitute* (find-files "." "Cargo\\.toml") | ||
| 252 | ((", features = \\[\"vendored\"\\]") "")))) | ||
| 253 | (replace 'install | ||
| 254 | (lambda _ | ||
| 255 | (let ((bin (string-append #$output "/bin"))) | ||
| 256 | (install-file "target/release/aw-server" bin) | ||
| 257 | (install-file "target/release/aw-sync" bin))))))) | ||
| 258 | (native-inputs (list pkg-config)) | ||
| 259 | (inputs (cons* openssl sqlite (cargo-inputs 'aw-server-rust))) | ||
| 260 | (home-page "https://activitywatch.net/") | ||
| 261 | (synopsis "Store and retrieve quantified self data") | ||
| 262 | (description | ||
| 263 | "This package provides the ActivityWatch server, for secure storage and | ||
| 264 | retrieval of all your quantified self data.") | ||
| 265 | (license license:mpl2.0)))) | ||
| 266 | |||
| 220 | (define-public aw-watcher-afk | 267 | (define-public aw-watcher-afk |
| 221 | (package/inherit aw-core | 268 | (package/inherit aw-core |
| 222 | (name "aw-watcher-afk") | 269 | (name "aw-watcher-afk") |
