From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CKmbA6Z4SWOGhwAAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 16:56:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SDOfA6Z4SWNHJgAA9RJhRA (envelope-from ) for ; Fri, 14 Oct 2022 16:56:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E23691103D for ; Fri, 14 Oct 2022 16:56:36 +0200 (CEST) Received: from localhost ([::1]:45540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM72-0005JV-1d for larch@yhetil.org; Fri, 14 Oct 2022 10:56:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojM5Y-00042S-6C for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojM5X-0004Gb-T0 for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojM5X-00063W-NG for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH 1/3] gnu: freedesktop: Add iio-sensor-proxy References: <87bkqflolh.fsf@posteo.net> In-Reply-To: <87bkqflolh.fsf@posteo.net> Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Oct 2022 14:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58501@debbugs.gnu.org Cc: florhizome Received: via spool by 58501-submit@debbugs.gnu.org id=B58501.166575925823166 (code B ref 58501); Fri, 14 Oct 2022 14:55:03 +0000 Received: (at 58501) by debbugs.gnu.org; 14 Oct 2022 14:54:18 +0000 Received: from localhost ([127.0.0.1]:38291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojM4n-00061U-Ox for submit@debbugs.gnu.org; Fri, 14 Oct 2022 10:54:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJP1-0000kG-CE for 58501@debbugs.gnu.org; Fri, 14 Oct 2022 08:03:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3A1F4240027 for <58501@debbugs.gnu.org>; Fri, 14 Oct 2022 14:02:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665748973; bh=TG+Gl0moTpOb1UAdHMjkcldrSQjA7UIDw4F++7AiAz8=; h=From:To:Cc:Subject:Date:From; b=f3XZZcbIBU4wOcH4+C9GRclGUwmS1vJeuRoQk3vB1doBcy4Vw44pUxkiJMOiz0l3N aXC5ot37xaavwpNhYZpomzoFbU3vTwPvbjqssAloLQELw96GenLW8Kac+J2+pKz3qS /LKo9QZKKRwqbjS08QFKcCQwG80XyZfBbZK1UIL1XRMZL/aylCiRJhmHVUHqZHgeFq m5P/mhPFPlCHb1RYYUpYNRuzbwwNKsmDcuz6HH6srgKa1/Cru6cabWndIbkxb7xHvf /zWO4BLtdkUWYDDSIBgij3mVh9xs6EzdDIGc21cVBlej+thOqQQRSWaMXwFNTYVFc3 VZkk4FzPei/Cg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MplQ21KKmz9rxP; Fri, 14 Oct 2022 14:02:49 +0200 (CEST) From: florhizome@posteo.net Date: Fri, 14 Oct 2022 12:02:44 +0000 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 14 Oct 2022 10:54:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665759397; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I1a9fra8CVT33epRByJG8Kc1eQq9j3zHnsx4PFOPYjU=; b=OB4ycJ3k/9RumTB3UMT9O96bm2k6s6CLkIEX7UGzuhkq0biX3O4gJ/xaw6T5DJDnrjAC1v vOAuTXPxSgL+wzWeJVcfrjO/dy/oe/pydhb1/6zA8WGNo9S1JS7K5VMgxLJOnylRXHq0wp 0qtE0IMfnwAvCItFbyPr/x6XJusN+ujTtQW4xv13Ueo5oDcaz+N1DWhxCZ5alSZrYNTCLl pO7l2w+nd35dfRG1BKqW4v7vxZ0Mnz08wD56TcyF9v5gEMrZjSjAAw0GN2g6gixxBaaRX1 qWCyJXNu6ISTyLIx+kB36ggrND2LRDHCppIGBVTBEKHZbizFeETYq2sDjKor9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665759397; a=rsa-sha256; cv=none; b=mtv++zxPelTpbANvCuaw8qa0N+MBRnvxtAVgpzAIAtXxG0RZ1zHbTSN8IRL/UHyofuS/nz nQNR5vWNT9Gux5iigzb1TZxAYyqLt2mdfkwUSZs5vwdlXx8ShnQuwex+h0Hgxk1X+42gW5 NIxpSm4FpUJZML/TLkqakPO9zKrYd46C+vKMRfYBqlc9Tqy5F/TtCnD/6h0X8L3tTY2y2g bpMCxRN8tqbowMGD5CyNHP727OxzSwAfvo0jBhbz13Ml/cYiT8a2teP9BIZ1zkHwHe2Iz/ Nmyq924UPPVL0jvWDFcTrebgapCcK/8eea3eDbeCgPzUN1mh0ghKU5tUoARXRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=f3XZZcbI; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 8.91 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=f3XZZcbI; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E23691103D X-Spam-Score: 8.91 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: SdPdJxzTCQnb From: florhizome --- gnu/packages/freedesktop.scm | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index ab37f04bef..d72b18caf5 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -728,6 +728,57 @@ (define-public elogind of a the system to know what users are logged in, and where.") (license license:lgpl2.1+))) + +(define-public iio-sensor-proxy + (package + (name "iio-sensor-proxy") + (version "3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dpcc3i53aw5illfhfkwxy0hsjsnya5iw4iv4al46vgyvcnvjc8z")))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags #~(list "-Dsystemdsystemunitdir=false" + (string-append "-Dudevrulesdir=" + #$output + "/lib/udev")) + #:glib-or-gtk? #t + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'fake-pkexec + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "PKEXEC_UID" "-1")))) + (add-before 'configure 'correct-polkit-dir + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* + "meson.build" + (("polkit_gobject_dep\\.get_pkgconfig_variable\\('policydir'\\)") + (string-append "'" out "/share/polkit-1/actions'"))))))))) + (native-inputs + (list `(,glib "bin") python umockdev python-dbusmock python-psutil dbus + gobject-introspection pkg-config)) + (inputs + (list glib polkit libgudev)) + (synopsis "Proxies sensor devices (accelerometers, light sensors, compass) + to applications through D-Bus ") + (description "With a GNOME 3.18 (or newer) based system, orientation changes + will automatically be applied when rotating the panel, ambient light will be + used to change the screen brightness, and GeoClue will be able to read the compass +data to show the direction in Maps. Can be used by other DEs, too though.") + (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (license license:gpl3))) + (define-public basu (package (name "basu") base-commit: 86ec52f66735b122b9035eba56516fd16f3be958 prerequisite-patch-id: 253e1cc8278ab9981294f4e483c7b29a466672d9 prerequisite-patch-id: fb797b9fdd73d1c18cba5dbd5804396d333f13df prerequisite-patch-id: 6f7fd28e90950c738840d3794ce7cd534f0d9180 -- 2.38.0