From patchwork Tue Aug 31 20:06:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 32448 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 6976A27BBE3; Tue, 31 Aug 2021 21:08:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 27ABD27BBE1 for ; Tue, 31 Aug 2021 21:08:09 +0100 (BST) Received: from localhost ([::1]:42924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLA3E-0008PL-8l for patchwork@mira.cbaines.net; Tue, 31 Aug 2021 16:08:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLA38-0008PD-Pn for guix-patches@gnu.org; Tue, 31 Aug 2021 16:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLA38-00034g-IG for guix-patches@gnu.org; Tue, 31 Aug 2021 16:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLA38-0000Ef-DS for guix-patches@gnu.org; Tue, 31 Aug 2021 16:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50065] [PATCH v2] gnu: Add setroot. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Aug 2021 20:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50065 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: othacehe@gnu.org Cc: 50065@debbugs.gnu.org Received: via spool by 50065-submit@debbugs.gnu.org id=B50065.1630440430831 (code B ref 50065); Tue, 31 Aug 2021 20:08:02 +0000 Received: (at 50065) by debbugs.gnu.org; 31 Aug 2021 20:07:10 +0000 Received: from localhost ([127.0.0.1]:35491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLA2H-0000DL-TU for submit@debbugs.gnu.org; Tue, 31 Aug 2021 16:07:10 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLA2G-0000D9-Bf for 50065@debbugs.gnu.org; Tue, 31 Aug 2021 16:07:09 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 5302520003; Tue, 31 Aug 2021 20:07:02 +0000 (UTC) From: Brice Waegeneire Date: Tue, 31 Aug 2021 22:06:57 +0200 Message-Id: <20210831200657.28627-1-brice@waegenei.re> X-Mailer: git-send-email 2.33.0 In-Reply-To: <878s0h6789.fsf@gnu.org> References: <878s0h6789.fsf@gnu.org> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/xorg.scm (setroot): New variable. --- gnu/packages/xorg.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Thank you for the review Mathieu. I fixed the three issues you pointed out. diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 6f9633985e..cae0fb3f73 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -6925,3 +6925,38 @@ an existing user-specified one, writes a cookie to it, and then starts the the server and cleaning up before returning the exit status of the command.") (license (list license:x11 ; the script license:gpl2+)))) ; the man page + +(define-public setroot + (package + (name "setroot") + (version "2.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ttzhou/setroot") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0w95828v0splk7bj5kfacp4pq6wxpyamvyjmahyvn5hc3ycq21mq")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "CC=" ,(cc-for-target)) + (string-append "DESTDIR=" (assoc-ref %outputs "out")) + "PREFIX=" + "xinerama=1") + #:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (inputs + `(("imlib2" ,imlib2) + ("libx11" ,libx11) + ("libxinerama" ,libxinerama))) + (home-page "https://github.com/ttzhou/setroot") + (synopsis "Simple X background setter inspired by imlibsetroot and feh") + (description "Setroot is a lightweight X background setter with feh's +syntax without its image viewing capabilities. It supports multiple monitors +and can restore previously set wallpapers and options.") + (license license:gpl3+)))