From ae147ef7bc21d546f0fa7765542f5a2c219c1dab Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 16 Oct 2025 23:54:24 +0800 Subject: [PATCH] gnu: Add iio-sensor-proxy. * gnu/packages/freedesktop.scm (iio-sensor-proxy): New variable. Change-Id: I942ed65121d93f94d31191c07a21442f246441a5 Signed-off-by: Liliana Marie Prikler --- gnu/packages/freedesktop.scm | 50 +++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 03e8b581ddec8be409c9b2e755884d02234774ed..9adaf08849e9afdd452e0f2f1873c6dc5a6ac0fb 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -39,7 +39,7 @@ ;;; Copyright © 2024-2025 Alvin Hsu ;;; Copyright © 2024 Dariqq ;;; Copyright © 2024 Wilko Meyer -;;; Copyright © 2024 dan +;;; Copyright © 2024, 2025 dan ;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. @@ -3477,3 +3477,51 @@ supporting behavior like @samp{ssh -X}.") window decorations for them. It aims to provide multiple backends that implements the decoration drawing.") (license license:expat))) + +(define-public iio-sensor-proxy + (package + (name "iio-sensor-proxy") + (version "3.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (commit "3.8"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rk0si00g75068cqgwd8qfq935wymsjczvpxg3wmlspq13h9amk5")))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags + #~(list "-Dsystemdsystemunitdir=false" + (string-append "-Dudevrulesdir=" + #$output "/lib/udev/rules.d") + "-Dtests=true" + "-Dgtk-tests=true") + #:glib-or-gtk? #t + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-polkit-dir + (lambda _ + (substitute* "meson.build" + (("polkit_gobject_dep\\..*") + (string-append "'" + #$output "/share/polkit-1/actions'")))))))) + (inputs (list glib libgudev polkit)) + (native-inputs + (list dbus + (list glib "bin") + gobject-introspection + gtk+ + pkg-config + python + python-dbusmock + python-psutil + umockdev)) + (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (synopsis "IIO sensors to D-Bus proxy") + (description + "@code{iio-sensor-proxy} is a daemon which passes IIO sensor data to D-Bus.") + (license license:gpl3+)))