From patchwork Wed Nov 17 17:08:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34579 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 9D36427BBE3; Wed, 17 Nov 2021 17:09:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1343227BBE1 for ; Wed, 17 Nov 2021 17:09:16 +0000 (GMT) Received: from localhost ([::1]:37264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnOQt-00008P-7L for patchwork@mira.cbaines.net; Wed, 17 Nov 2021 12:09:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnOQh-0008TM-2B for guix-patches@gnu.org; Wed, 17 Nov 2021 12:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnOQg-00050Y-Oa for guix-patches@gnu.org; Wed, 17 Nov 2021 12:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnOQg-0006zu-KU for guix-patches@gnu.org; Wed, 17 Nov 2021 12:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51924] [PATCH] gnu: Add postmarketos-tweaks. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 17 Nov 2021 17:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51924@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.163716891926842 (code B ref -1); Wed, 17 Nov 2021 17:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Nov 2021 17:08:39 +0000 Received: from localhost ([127.0.0.1]:33719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnOQJ-0006yr-6n for submit@debbugs.gnu.org; Wed, 17 Nov 2021 12:08:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:37770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnOQH-0006yj-1d for submit@debbugs.gnu.org; Wed, 17 Nov 2021 12:08:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnOQE-0007fg-ST for guix-patches@gnu.org; Wed, 17 Nov 2021 12:08:36 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:54066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnOQA-0004un-LN for guix-patches@gnu.org; Wed, 17 Nov 2021 12:08:34 -0500 Date: Wed, 17 Nov 2021 17:08:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1637168903; bh=9hcyyU+IOWb0yU9fs0yAB8w1Ipb/YbzabkkOqGAAuzY=; h=Date:To:From:Reply-To:Subject:From; b=v3z0NcbCG4k4Dk8AkahWt3I63QsrNNtxkI28VWfqOQcG6AOu01E1b+5wZzbwPh+HT AJUbvmzGIPqvepefQkxZIGGESmcuKvusX0NpFYKDfluLxsrVrJskl3bvuLRDTpU18P jWfJHnuQrxgQdm5n6GW3wu/pnolROesTdajdEO7w= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.133; envelope-from=phodina@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi, here's patch for tool similar to gnome-tweaks just for mobile devices. There is hardcoded location /etc/postmarket for polkit. Should this be substituted for different location in a similar manner as with udev which looks in out/lib/udev? * gnu/packages/gnome.scm (postmarketos-tweaks): New variable. --- 2.33.0 diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 28d4432334..2e32be4cd5 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -11357,6 +11357,64 @@ (define-public polari (home-page "https://wiki.gnome.org/Apps/Polari") (license license:gpl2+))) +(define-public postmarketos-tweaks + (package + (name "postmarketos-tweaks") + (version "0.8.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/postmarketOS/postmarketos-tweaks") + (commit version))) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "09z3i288jnxvkbk2dphjc578ycp1vqzdmixi311fymvgwhfb3xjs")))) + (build-system meson-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-install-dir + (lambda* _ + (substitute* "data/meson.build" + (("/etc/init.d") (string-append %output "/etc/init.d"))))) + (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin/")) + (pylib (string-append (assoc-ref outputs "out") + "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages"))) + (for-each + (lambda (program) + (wrap-program (string-append bin program) + `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib)) + `("GI_TYPELIB_PATH" = (,(getenv + "GI_TYPELIB_PATH"))))) + (list "pmos-tweaks" "pmos-tweakd" "pk-tweaks-action")) + #t)))))) + (native-inputs `(("pkg-config" ,pkg-config) + ("gtk+:bin" + ,gtk+ "bin") ; for gtk-update-icon-cache + ("glib:bin" + ,glib "bin") ; glib-compile-schemas, etc. + ("desktop-file-utils" + ,desktop-file-utils) ; for update-desktop-database + ("cmake" ,cmake))) + (inputs `(("bash-minimal" ,bash-minimal) + ("gtk+" ,gtk+) + ("libhandy" ,libhandy) + ("python" ,python) + ("python-pygobject" ,python-pygobject) + ("python-pyyaml" ,python-pyyaml))) + (home-page "https://gitlab.com/postmarketOS/postmarketos-tweaks") + (synopsis "Extra settings on mobile platforms") + (description "Postmarket tweaks is an application for tweaking settings +on desktop environments supported by postmarketOS.") + (license license:lgpl3))) + (define-public gnome-boxes (package (name "gnome-boxes")