diff options
| author | dan <i@dan.games> | 2025-10-16 23:54:24 +0800 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-11-07 18:39:59 +0100 |
| commit | ae147ef7bc21d546f0fa7765542f5a2c219c1dab (patch) | |
| tree | 2997febb6ef8da71a403f018a20a3447946ba4d1 | |
| parent | a00b614e275133b2e38b2610b29ab41fda486d37 (diff) | |
gnu: Add iio-sensor-proxy.
* gnu/packages/freedesktop.scm (iio-sensor-proxy): New variable.
Change-Id: I942ed65121d93f94d31191c07a21442f246441a5
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
| -rw-r--r-- | gnu/packages/freedesktop.scm | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 03e8b581dde..9adaf08849e 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | ;;; Copyright © 2024-2025 Alvin Hsu <aurtzy@gmail.com> | 39 | ;;; Copyright © 2024-2025 Alvin Hsu <aurtzy@gmail.com> |
| 40 | ;;; Copyright © 2024 Dariqq <dariqq@posteo.net> | 40 | ;;; Copyright © 2024 Dariqq <dariqq@posteo.net> |
| 41 | ;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu> | 41 | ;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu> |
| 42 | ;;; Copyright © 2024 dan <i@dan.games> | 42 | ;;; Copyright © 2024, 2025 dan <i@dan.games> |
| 43 | ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | 43 | ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 44 | ;;; | 44 | ;;; |
| 45 | ;;; This file is part of GNU Guix. | 45 | ;;; This file is part of GNU Guix. |
| @@ -3477,3 +3477,51 @@ supporting behavior like @samp{ssh -X}.") | |||
| 3477 | window decorations for them. It aims to provide multiple backends that | 3477 | window decorations for them. It aims to provide multiple backends that |
| 3478 | implements the decoration drawing.") | 3478 | implements the decoration drawing.") |
| 3479 | (license license:expat))) | 3479 | (license license:expat))) |
| 3480 | |||
| 3481 | (define-public iio-sensor-proxy | ||
| 3482 | (package | ||
| 3483 | (name "iio-sensor-proxy") | ||
| 3484 | (version "3.8") | ||
| 3485 | (source | ||
| 3486 | (origin | ||
| 3487 | (method git-fetch) | ||
| 3488 | (uri (git-reference | ||
| 3489 | (url "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") | ||
| 3490 | (commit "3.8"))) | ||
| 3491 | (file-name (git-file-name name version)) | ||
| 3492 | (sha256 | ||
| 3493 | (base32 "0rk0si00g75068cqgwd8qfq935wymsjczvpxg3wmlspq13h9amk5")))) | ||
| 3494 | (build-system meson-build-system) | ||
| 3495 | (arguments | ||
| 3496 | (list | ||
| 3497 | #:configure-flags | ||
| 3498 | #~(list "-Dsystemdsystemunitdir=false" | ||
| 3499 | (string-append "-Dudevrulesdir=" | ||
| 3500 | #$output "/lib/udev/rules.d") | ||
| 3501 | "-Dtests=true" | ||
| 3502 | "-Dgtk-tests=true") | ||
| 3503 | #:glib-or-gtk? #t | ||
| 3504 | #:phases | ||
| 3505 | #~(modify-phases %standard-phases | ||
| 3506 | (add-after 'unpack 'patch-polkit-dir | ||
| 3507 | (lambda _ | ||
| 3508 | (substitute* "meson.build" | ||
| 3509 | (("polkit_gobject_dep\\..*") | ||
| 3510 | (string-append "'" | ||
| 3511 | #$output "/share/polkit-1/actions'")))))))) | ||
| 3512 | (inputs (list glib libgudev polkit)) | ||
| 3513 | (native-inputs | ||
| 3514 | (list dbus | ||
| 3515 | (list glib "bin") | ||
| 3516 | gobject-introspection | ||
| 3517 | gtk+ | ||
| 3518 | pkg-config | ||
| 3519 | python | ||
| 3520 | python-dbusmock | ||
| 3521 | python-psutil | ||
| 3522 | umockdev)) | ||
| 3523 | (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") | ||
| 3524 | (synopsis "IIO sensors to D-Bus proxy") | ||
| 3525 | (description | ||
| 3526 | "@code{iio-sensor-proxy} is a daemon which passes IIO sensor data to D-Bus.") | ||
| 3527 | (license license:gpl3+))) | ||
