From patchwork Sun Jan 5 23:01:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Wong X-Patchwork-Id: 36652 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 5300427BBE9; Sun, 5 Jan 2025 23:03:09 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 0B1D827BBE2 for ; Sun, 5 Jan 2025 23:03:06 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUZeB-0006sc-CB; Sun, 05 Jan 2025 18:03:03 -0500 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 1tUZeA-0006sH-8H for guix-patches@gnu.org; Sun, 05 Jan 2025 18:03:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUZe9-00042s-WD for guix-patches@gnu.org; Sun, 05 Jan 2025 18:03:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=SYM91k2y7keCftRtz6aez5dh6G0pjcenx16Seysr2qs=; b=sj4OXGcWAJBMHmNwmgW8L/X0TaUV9MyMzGPkYf4YjboS0NjgbxdRoSLS8p52bPDOdiYX4YME3s7kalvbUkF1gzy8pP99f2P66Wy+oxj40SiyNZjDJXkLzCeLEHjE+Q0Q1v+Xb3FN4ImrLVLVeIYNVEiL9gpoTfMwy5ypHczmuaJnbGic8kVJ6B5BJbrvu+CNf2PaMMrCg+KJRcFZd0xPRGzzYZWnIffZ8sNXA6vxuUWFZpD0YsfXOvz6zoPeez25HyEZD04ln+JB9fjFpmv1boRiRTKTfb/e8qsSMfzUp1l3fCEexIHE49EtTsAJEx/eOc3bi0asYKtJ6b8QwJK1ow==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUZe9-0002Dl-PR; Sun, 05 Jan 2025 18:03:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75391] [PATCH 01/12] gnu: Add wallust. Resent-From: Andrew Wong Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sun, 05 Jan 2025 23:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75391 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75391@debbugs.gnu.org Cc: Andrew Wong , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 75391-submit@debbugs.gnu.org id=B75391.17361181328283 (code B ref 75391); Sun, 05 Jan 2025 23:03:01 +0000 Received: (at 75391) by debbugs.gnu.org; 5 Jan 2025 23:02:12 +0000 Received: from localhost ([127.0.0.1]:35793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUZdM-00029V-4g for submit@debbugs.gnu.org; Sun, 05 Jan 2025 18:02:12 -0500 Received: from qs51p00im-qukt01072302.me.com ([17.57.155.13]:54367) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUZdK-00029H-23 for 75391@debbugs.gnu.org; Sun, 05 Jan 2025 18:02:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1736118124; bh=SYM91k2y7keCftRtz6aez5dh6G0pjcenx16Seysr2qs=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=sWxU7nRjyXNl1VAWPMolPVMgSeJDjIA1bpjSor/YOL9CS3GkYQlnCED7OuqSSalt9 N8WV5oMambOLI9d4g6up8cLf/szJFYKrUnEloSbwUD95nkqLvyiTkCyYbn20f9y3Or e9G1FnNIqalYeD4U0KbUOi/ePmZ+1H4gK0ubwF/+A9zyfGY73vgwk18ac30xNp9fnX zcW3XHe520Ea3U8Wn0V07dkdlawYPzGzo0G1UwK545cmQ2HIFRNp69crf3H0rt1QSd vk2DrYMQJa1kvKS64COXZrrSHQENYe0GoMmrE9umXcqoySd/FG52yoDme6ktMfkYOy c2Hh7TOWgtjgg== Received: from wongworks.lan (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072302.me.com (Postfix) with ESMTPSA id D13A163002CA; Sun, 5 Jan 2025 23:02:03 +0000 (UTC) Date: Sun, 5 Jan 2025 18:01:04 -0500 Message-ID: <0a0e0708523632981706c917916fa10b4017f7ee.1736117349.git.wongandj@icloud.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: References: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: kpaa2PStYLfCCYTa4xz21t8YYy7U-6xE X-Proofpoint-GUID: kpaa2PStYLfCCYTa4xz21t8YYy7U-6xE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-02_03,2025-01-02_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=974 suspectscore=0 clxscore=1011 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2501050215 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 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: , Reply-to: Andrew Wong X-ACL-Warn: , Andrew Wong via Guix-patches X-Patchwork-Original-From: Andrew Wong via Guix-patches via From: Andrew Wong Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/rust-apps.scm (wallust): New variable; (wallust-themes): New variable. Change-Id: If02281e12a2f1f54fccc09bd90181e3e23fb0de2 --- gnu/packages/rust-apps.scm | 108 +++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index dbf253b366..776a43f8e0 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -4422,6 +4422,114 @@ (define-public rust-xremap (description "This package provides dynamic key remapp for X and Wayland.") (license license:expat))) +(define-public wallust-themes + (package + (name "wallust-themes") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "wallust_themes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1kgkggdb78sxz81si3glhvqpxbxhz858p9wzqxd51drzlvwgi1m1")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1)))) + (home-page "https://codeberg.org/explosion-mental/wallust-themes") + (synopsis "Built in colorschemes for Wallust") + (description "This package provides built-in colorschemes for Wallust.") + (license license:expat))) + +(define-public wallust + (package + (name "wallust") + (version "3.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "wallust" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1frx8py92vn04hc8cq18bs0z5dadx2q271fa3wgsry9bh5qvs6jp")))) + (build-system cargo-build-system) + (native-inputs (list pkg-config)) + (inputs (list zlib libgit2-1.8)) + (arguments + `(#:features (list "buildgen" "doc" "themes") + #:install-source? #f + #:phases (modify-phases %standard-phases + (add-after 'install 'install-extras + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (install-completion (lambda (path filename) + (install-file (string-append + "completions/" + filename) + (string-append + out path)))) + (install-man (lambda (filename section) + (install-file (string-append + "man/" filename) + (string-append out + "/share/man/man" + section))))) + (install-completion "/etc/bash-completion.d/" + "wallust.bash") + (install-completion + "/share/fish/vendor_completions.d/" "wallust.fish") + (install-completion "/share/zsh/site-functions/" + "_wallust") + (install-completion "/share/elvish/lib/" "wallust.elv") + (install-man "wallust-cs.1" "1") + (install-man "wallust-run.1" "1") + (install-man "wallust-theme.1" "1") + (install-man "wallust.1" "1") + (install-man "wallust.5" "5"))))) + #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1) + ("rust-clap" ,rust-clap-4) + ("rust-dirs" ,rust-dirs-5) + ("rust-documented" ,rust-documented-0.6) + ("rust-dunce" ,rust-dunce-1) + ("rust-fast-image-resize" ,rust-fast-image-resize-5) + ("rust-fastrand" ,rust-fastrand-2) + ("rust-glob" ,rust-glob-0.3) + ("rust-image" ,rust-image-0.25) + ("rust-itertools" ,rust-itertools-0.13) + ("rust-kmeans-colors" ,rust-kmeans-colors-0.6) + ("rust-minijinja" ,rust-minijinja-2) + ("rust-new-string-template" ,rust-new-string-template-1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-owo-colors" ,rust-owo-colors-4) + ("rust-palette" ,rust-palette-0.7) + ("rust-regex" ,rust-regex-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-shellexpand" ,rust-shellexpand-3) + ("rust-spinners" ,rust-spinners-4) + ("rust-strum" ,rust-strum-0.26) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-toml" ,rust-toml-0.8) + ("rust-toml-edit" ,rust-toml-edit-0.22) + ("rust-vergen-git2" ,rust-vergen-git2-1) + ("wallust-themes" ,wallust-themes)) + #:cargo-development-inputs (("rust-clap-complete" ,rust-clap-complete-4) + ("rust-clap-mangen" ,rust-clap-mangen-0.2) + ("rust-criterion" ,rust-criterion-0.5) + ("rust-dirs" ,rust-dirs-5) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://explosion-mental.codeberg.page/wallust") + (synopsis "Generate themes from images with advanced templating") + (description + "Wallust is a rust-based successor to \"pywal\" which generates color +themes from images with advanced templating and generation options. +Templates are made using either a subset of Jinja2 or pywal syntax. +Color generation may be constrained to obey ANSI color standards, meet +minimum contrast levels, and more.") + (license license:expat))) + (define-public xremap-gnome (package (inherit rust-xremap)