From patchwork Thu Nov 3 20:59:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 44286 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EB85527BBE9; Thu, 3 Nov 2022 21:02:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A486127BBEA for ; Thu, 3 Nov 2022 21:02:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqhKj-00031d-Vd; Thu, 03 Nov 2022 17:01:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqhKh-00030s-C0 for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqhKg-0002Vg-Qg for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqhKg-0007Tw-3M for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH v2 1/3] gnu: 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: Thu, 03 Nov 2022 21:01:02 +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.166750921128666 (code B ref 58501); Thu, 03 Nov 2022 21:01:02 +0000 Received: (at 58501) by debbugs.gnu.org; 3 Nov 2022 21:00:11 +0000 Received: from localhost ([127.0.0.1]:50913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJr-0007SH-8p for submit@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:11 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJl-0007Px-Mj for 58501@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 83B22240027 for <58501@debbugs.gnu.org>; Thu, 3 Nov 2022 21:59:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667509199; bh=el4n3lHJwwQ/Tag0sWhoTcClyinDu4NJ94JP6z2rQO4=; h=From:To:Cc:Subject:Date:From; b=QlSZRs4PvsBEyMndvKaL25p2olSl5ehYW3J/Ej88jRyaNXIb8c1CBYmOZU+FYPwY3 ccObv9zZJqChlZQcEjcZjzTNQfTalDYtsFV7qGTw0/V8Rd5F0H5CI+udNxn1ScDnw1 Ow+5hYFk7M/IveLb9ZYNg0O7TjXZNirM21KV5T8PFx5OAyP3h5EvIOUePrCMxw6Qd5 EroOirY7Ey+XzBawG93XxNm4g4q3bhCsbDlBlFcA9FC8kXy1/KFqOAezZ/fXCJlNuM SPQmqOkY1UXzvASmFhApUwZfcBZdpvOCnGMN89VckSTaYxxJ+nwknihFlZyM2t5+NB 5IO0h/sewLjTQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N3GNZ5nlVz9rxV; Thu, 3 Nov 2022 21:59:58 +0100 (CET) From: florhizome@posteo.net Date: Thu, 3 Nov 2022 20:59:54 +0000 Message-Id: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: florhizome Second round, adjust to gexp argument style, enable all tests and minor improvements * gnu/packages/freedesktop.scm (Add iio-sendor-proxy): New variable. --- gnu/packages/freedesktop.scm | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) base-commit: 754f260753fb6ebe28325616bc08336a184e4621 prerequisite-patch-id: 36ae907c0ae2cbc001f774c0514ab217855270c2 prerequisite-patch-id: 2c99b804c1a929fc9d74b4c3d92263cbd296f785 prerequisite-patch-id: 2525aea715c2eb5be5f61e2e14296a36898413ca prerequisite-patch-id: f7afbf36e2776eced1e69090ec127a40456efca4 diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 07ccf9f8f2..8190f59c48 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2022 Daniel Meißner ;;; Copyright © 2022 muradm ;;; Copyright © 2022 Petr Hodina +;;; Copyright © 2022 florhizome ;;; ;;; This file is part of GNU Guix. ;;; @@ -728,6 +729,56 @@ (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 + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'fake-pkexec + (lambda _ + (setenv "PKEXEC_UID" "-1"))) + (add-before 'configure 'correct-polkit-dir + (lambda _ + (substitute* "meson.build" + (("polkit_gobject_dep\\..*") + (string-append "'" #$output "/share/polkit-1/actions'")))))))) + (native-inputs + (list dbus + (list glib "bin") + gobject-introspection + python + python-dbusmock + python-psutil + pkg-config + umockdev)) + (inputs + (list glib libgudev polkit)) + (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (synopsis "Proxies sensor devices 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.") + (license license:gpl3))) + (define-public basu (package (name "basu") From patchwork Thu Nov 3 20:59:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 44285 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C1CEA27BBE9; Thu, 3 Nov 2022 21:02:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2BD0A27BBEA for ; Thu, 3 Nov 2022 21:02:00 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqhKk-00031e-B1; Thu, 03 Nov 2022 17:01:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqhKh-00030t-Cb for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqhKg-0002Vh-Tf for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqhKg-0007U4-IM for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH v2 2/3] gnu: Add power-profiles-daemon Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Nov 2022 21:01:02 +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.166750921528685 (code B ref 58501); Thu, 03 Nov 2022 21:01:02 +0000 Received: (at 58501) by debbugs.gnu.org; 3 Nov 2022 21:00:15 +0000 Received: from localhost ([127.0.0.1]:50915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJr-0007SJ-Qn for submit@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJn-0007QS-5O for 58501@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3E8E3240103 for <58501@debbugs.gnu.org>; Thu, 3 Nov 2022 22:00:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667509201; bh=woJgVikCk8gZ4EY0Uvt+zKN+bOn2xhokNfR+RRCkyfw=; h=From:To:Cc:Subject:Date:From; b=ZgCS8jKbZuSbwGzwiwG/23oW12jbaRl4ziaVrvK5CGVS1di1zEaw/FvnI1KOkSNwV qZJ2uKN9yO9w7kbJtWn/WhLgFsYtm95p0tCEosYQIyAAisYAJ1nj//5NvTHK2uIUWE BldD8nPueS9buwotfxB0R7EBXfCO23tJI4cKDOnz4FGuKTzSPcRDgs4EKF6laaElVS HrvRhEf2wDl7zWLbmTYdq0e+iSS62Ul1K53finGakV4uNMZ3m6M8q2BCb5m9gOlNfZ SN4kaKuZXlr5o0AnEhOQNXyzfkadoQG/EPGOsbpvDE3r2xRSH6D+p1O/fTY6buJvpu r2wcheNR10Fag== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N3GNc47S2z9rxV; Thu, 3 Nov 2022 22:00:00 +0100 (CET) From: florhizome@posteo.net Date: Thu, 3 Nov 2022 20:59:55 +0000 Message-Id: In-Reply-To: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> References: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: florhizome * gnu/packages/freedesktop.scm (Add power-profiles-daemon): New variable. --- gnu/packages/freedesktop.scm | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 8190f59c48..5c2cc16345 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -990,6 +990,63 @@ (define-public packagekit manager for the current system.") (license license:gpl2+))) +(define-public power-profiles-daemon + (package + (name "power-profiles-daemon") + (version "0.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/power-profiles-daemon") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wqcajbj358zpyj6y4h1v34y2yncq76wqxd0jm431habcly0bqyr")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Dsystemdsystemunitdir=false") + #:glib-or-gtk? #t + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'fake-pkexec + (lambda _ (setenv "PKEXEC_UID" "-1"))) + (add-before 'configure 'correct-polkit-dir + (lambda _ + (substitute* "meson.build" + (("polkit_gobject_dep\\..*") + (string-append "'" #$output "/share/polkit-1/actions'"))))) + (add-after 'install 'wrap-program + (lambda _ + (wrap-program + (string-append #$output "/bin/powerprofilesctl") + `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))) + (native-inputs + (list `(,glib "bin") gobject-introspection pkg-config python vala)) + (inputs + (list dbus + dbus-glib + libgudev + glib polkit + python + python-pygobject + upower)) + (home-page "https://gitlab.freedesktop.org/hadess/power-profiles-daemon") + (synopsis "Power profile handling over D-Bus") + (description "power-profiles-daemon offers to modify system behaviour based + upon user-selected power profiles. There are 3 different power profiles, a +\"balanced\" default mode, a \"power-saver\" mode, as well as a \"performance\" + mode. The first 2 of those are available on every system. The \"performance\" + mode is only available on select systems and is implemented by different \"drivers\" + based on the system or systems it targets. +In addition to those 2 or 3 modes (depending on the system), \"actions\" can be hooked +up to change the behaviour of a particular device. For example, this can be used +to disable the fast-charging for some USB devices when in power-saver mode.") + (license license:gpl3))) + + (define-public python-libevdev (package (name "python-libevdev") From patchwork Thu Nov 3 20:59:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 44284 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 29AEC27BBE9; Thu, 3 Nov 2022 21:02:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0D66F27BBEA for ; Thu, 3 Nov 2022 21:01:59 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqhKl-00032K-Je; Thu, 03 Nov 2022 17:01:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqhKh-00030u-Cn for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqhKh-0002Vl-1f for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqhKg-0007UB-UC for guix-patches@gnu.org; Thu, 03 Nov 2022 17:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH v2 3/3] gnu: Add low-memory-monitor Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Nov 2022 21:01:02 +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.166750921528691 (code B ref 58501); Thu, 03 Nov 2022 21:01:02 +0000 Received: (at 58501) by debbugs.gnu.org; 3 Nov 2022 21:00:15 +0000 Received: from localhost ([127.0.0.1]:50917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJv-0007Sc-Ft for submit@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqhJo-0007Qp-6s for 58501@debbugs.gnu.org; Thu, 03 Nov 2022 17:00:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A8FFE240105 for <58501@debbugs.gnu.org>; Thu, 3 Nov 2022 22:00:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667509202; bh=ZQthox4XkoHYLJ9f5XsA1IGa5M4HkXMzf6HaRgzS+vg=; h=From:To:Cc:Subject:Date:From; b=dlRLR4uHaijm73IYgQw9B8JuBwiX7yMrX2pfZDADdW9V4YXhOnQ+ZemG/HEbDHuab nAFdhlgP/V4/efIGdsa+h4moNL66xTDVwsryJz9BdkyKl+F7BxdAI7G1XE4xgR0iNV qqKglWA2HTYwPemn9y4zMeb2SrJaq/Ct8koZXxpCAEhHujPx4MBasYuKumh5ZGGJyI rNOOtIawz6M7QsqPDCL92ie/0qgzbeuVyZdyqvBSKlcRtGWtc2EiATHfTNRSiGambb q0Z8vM+dmjiJ5lBH2Fi9I0IEOiygj0t18O2gdLyH8JT5fIBp6vrm5prMkx/q0hgMRF kM4+jweGfEBZA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N3GNf0BcKz9rxV; Thu, 3 Nov 2022 22:00:02 +0100 (CET) From: florhizome@posteo.net Date: Thu, 3 Nov 2022 20:59:56 +0000 Message-Id: <51a9c9f7e617c42e11eb0b63518456763130fdf6.1667508108.git.florhizome@posteo.net> In-Reply-To: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> References: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: florhizome * gnu/packages/freedesktop.scm (Add low-memory-monitor): New variable. --- gnu/packages/freedesktop.scm | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 5c2cc16345..736c951c68 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1735,6 +1735,49 @@ (define-public libqmi ;; The qmicli tool is released under the GPLv2+ license. (list license:lgpl2.0+ license:gpl2+)))) +(define-public low-memory-monitor + (package + (name "low-memory-monitor") + (version "2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0431wzn9q2hnx0mwai8w3bcmbln8g76r7wyyhjbkamnl2sccl8jn")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Dsystemdsystemunitdir=false") + #:glib-or-gtk? #t)) + (native-inputs + (list (list glib "bin") gobject-introspection gtk-doc libxml2 + pkg-config)) + (inputs + (list glib libgudev eudev)) + (home-page "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + + (synopsis "Daemon to send information about memory pressure to userspace") + (description + "Low Memory Monitor is an early boot daemon that will monitor memory +pressure information coming from the kernel, and, when memory pressure means +that memory isn't as readily available and would cause interactivity problems, + would: + +@itemize +@item send D-Bus signals to user-space applications when memory is running low, + +@item if configured to do so and memory availability worsens, activate the + kernel's OOM killer. +@end itemize + +It is designed for use on traditional Linux systems, with interactive user +interfaces and D-Bus communication.") + (license license:gpl3))) + (define-public modem-manager (package (name "modem-manager")