From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sMIpGBcZmGGpFQAAgWs5BA (envelope-from ) for ; Fri, 19 Nov 2021 22:37:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IPfaEhcZmGEhLwAAbx9fmQ (envelope-from ) for ; Fri, 19 Nov 2021 21:37:27 +0000 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 D1C0D2957C for ; Fri, 19 Nov 2021 22:37:26 +0100 (CET) Received: from localhost ([::1]:35656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moBZV-0004Ru-HQ for larch@yhetil.org; Fri, 19 Nov 2021 16:37:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moBZ9-0004RN-44 for guix-patches@gnu.org; Fri, 19 Nov 2021 16:37:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moBZ8-0005Wo-I0 for guix-patches@gnu.org; Fri, 19 Nov 2021 16:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moBZ8-0004MD-8G for guix-patches@gnu.org; Fri, 19 Nov 2021 16:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51986] [PATCH] Add tlpui Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Nov 2021 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51986 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51986@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163735780416709 (code B ref -1); Fri, 19 Nov 2021 21:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2021 21:36:44 +0000 Received: from localhost ([127.0.0.1]:40685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moBYj-0004LI-Cf for submit@debbugs.gnu.org; Fri, 19 Nov 2021 16:36:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:37266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moBYh-0004L9-Mw for submit@debbugs.gnu.org; Fri, 19 Nov 2021 16:36:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moBYh-0004Lr-DV for guix-patches@gnu.org; Fri, 19 Nov 2021 16:36:35 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:46419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moBYf-0005OJ-5O for guix-patches@gnu.org; Fri, 19 Nov 2021 16:36:34 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id F1436200006 for ; Fri, 19 Nov 2021 21:36:29 +0000 (UTC) From: Nicolas Goaziou Date: Fri, 19 Nov 2021 22:36:29 +0100 Message-ID: <87czmvygiq.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=217.70.178.232; envelope-from=mail@nicolasgoaziou.fr; helo=relay12.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637357846; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=HwnyZMlVKHF5KjffFaoXWrPQ4ryS6u1B7XJXvfLXV7A=; b=dot5isx+oVHFM+OEPYPPEDrdspfe8xsQPxyWvtBgvl0YMxgvMHLHR/4WkhUvgpSKh0V16T 5mmxAzKC2CXtCqgypFTl9bU3KzFSYAW6YfVB73BJ/6xngguAA9mhmAmE0czeVhYPieSvE/ 6n/ZS6jObJEvKt9h0VND37RTukvG4wHDsFo+46bWMgDpptPLfnQxA8J3vBw+AhJV/THTvA 5NF2Pz9zf2jKx7IaQfZ/NrTIs3FXrCkXVqlatuTX0GjAHJjfNsrMSejeYq4LYJpAJKQY+J SqZPT1gb6KlXj0m/VkuyWIaeZhuqJ4Pw7uZc0BXSrwRTUn/BIbuuefgjCmuZcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637357846; a=rsa-sha256; cv=none; b=mxvfCqDihQbq9kHwYqnadlc7RvfrYl+BTzmgHoXmi+gfVCUKwcwoszU7wLQ7SmBRvcQUF/ ecV3ofEJenVEb0kICJ/qXNDi+1l6BlYvIYM427S6mL3hqIXTU00XiVaLU+xwvKTIOA81RJ LeOIcch4UZC3HcSkqx1wDOCcDEDMsP/kDRbnS0cjwSwGTOCnqD+qd+NS+BJJlr8vykNuoJ W+hizjUCC+b+d2ItaVdfZ0k1gNOsCBF36S3FjalxOsmza+J5DNKBq1oeJgzuhWFNw+nmhG L+/Otkcnra0DeNW/4yryZSv31+YQktsYo6LbffEv0s2R8u9Jbg5+zoO8Qak4QA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.17 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D1C0D2957C X-Spam-Score: -3.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: /sb3dyyMq73a --=-=-= Content-Type: text/plain Hello, The following patch adds TLPUI to "linux.scm". Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-tlpui.patch Content-Description: Add TLPUI >From 701601c421713157c13f6fd2c649b7e69fc079fd Mon Sep 17 00:00:00 2001 Message-Id: <701601c421713157c13f6fd2c649b7e69fc079fd.1637357746.git.mail@nicolasgoaziou.fr> From: Nicolas Goaziou Date: Fri, 19 Nov 2021 22:35:25 +0100 Subject: [PATCH] gnu: Add tlpui. * gnu/packages/linux.scm (tlpui): New variable. --- gnu/packages/linux.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 1d005de1db..17a702c73e 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -6874,6 +6874,61 @@ (define-public tlp ;; rest is GPLv2+. (license (list license:gpl2+ license:gpl3+)))) +(define-public tlpui + (package + (name "tlpui") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/d4nj1/TLPUI") + (commit (string-append "tlpui-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sd380inkiq8mljnzjd8p69a6cnwv19v2793358v3ws1mr55x127")))) + (build-system python-build-system) + (arguments + `(#:tests? #false + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-setup.py + ;; Install data_files to $out/share instead of /usr/share. + (lambda _ + (substitute* "setup.py" + (("/usr/") "")))) + (add-after 'unpack 'use-tlp-input + ;; Hard-code tlp-stat filename to avoid propagating "tlp". + (lambda* (#:key inputs #:allow-other-keys) + (let ((tlp-stat (string-append (assoc-ref inputs "tlp") + "/bin/tlp-stat"))) + (substitute* '("tlpui/file.py" + "tlpui/settingshelper.py" + "tlpui/statui.py") + (("which\\(\"tlp-stat\"\\)") (string-append "'" tlp-stat "'")) + (("\"tlp-stat\"") (string-append "'" tlp-stat "'")))))) + (add-after 'install 'wrap-gi-python + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (wrap-program (string-append out "/bin/tlpui") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))))) + (native-inputs + `(("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection))) + (inputs + `(("gtk+" ,gtk+) + ("python-pygobject" ,python-pygobject) + ("tlp" ,tlp))) + (home-page "https://github.com/d4nj1/TLPUI") + (synopsis "User interface for TLP written in Python") + (description + "The Python scripts in this project generate a GTK-UI to change +TLP configuration files easily. It has the aim to protect users from +setting bad configuration and to deliver a basic overview of all the +valid configuration values.") + (license license:gpl2+))) + (define-public lshw (package (name "lshw") -- 2.34.0 --=-=-=--