From patchwork Thu May 30 15:17:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Murilo X-Patchwork-Id: 64969 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 5C2D727BBEB; Thu, 30 May 2024 17:28:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A 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 6AF8827BBE2 for ; Thu, 30 May 2024 17:28:12 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCicH-00037Y-HI; Thu, 30 May 2024 12:27:01 -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 1sChaH-0000w4-IF for guix-patches@gnu.org; Thu, 30 May 2024 11:20:53 -0400 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 1sChaG-0007VX-J7 for guix-patches@gnu.org; Thu, 30 May 2024 11:20:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sChaQ-0002lr-IB; Thu, 30 May 2024 11:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71278] [PATCH 01/44] gnu: Add eww. Resent-From: Murilo Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Thu, 30 May 2024 15:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71278 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71278@debbugs.gnu.org Cc: Murilo , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 71278-submit@debbugs.gnu.org id=B71278.171708245610621 (code B ref 71278); Thu, 30 May 2024 15:21:02 +0000 Received: (at 71278) by debbugs.gnu.org; 30 May 2024 15:20:56 +0000 Received: from localhost ([127.0.0.1]:42107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sChaJ-0002lE-UO for submit@debbugs.gnu.org; Thu, 30 May 2024 11:20:56 -0400 Received: from layka.disroot.org ([178.21.23.139]:43648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sChaG-0002kw-Qv for 71278@debbugs.gnu.org; Thu, 30 May 2024 11:20:55 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A5B9740DFC; Thu, 30 May 2024 17:20:40 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nIDSE2SYa-l8; Thu, 30 May 2024 17:20:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1717082439; bh=L5HLQBwc0ZMtiBUggjGaWXB/a1vM/iZZJS4kfuKtgFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=V6+PR/lyKUZ3vNwzM6DSS6eJR5ppbBkrTg0e1I6dDG5iHkyohRmKUiiHN/ZHOADIY iMg5+drIedVM1THIPhvpcWjeJZpvMFuQ0Pu4x2uMNDTN7p1iWtxwcVwKiWDTI4A4vh A2Hg9AN4EoZyieKDo+RLrT3H8ih6EPcGt8LvJ1EaHfDFJV52XzpBjg5G3YBUHpc+u9 uGWSLfy3j927g8XSLpcyMFinyCQWJdrYMIA5nU9khYTXyf+EF1tt7ja4jiywgGQoyC 29Imq/FbEPDZB7NcUwGnJa3if3A90CDzPS0LIk45v1zgEC7SP+f3faqsU2Z44hIw9c OX8Upq98cTdrA== Date: Thu, 30 May 2024 12:17:28 -0300 Message-ID: <4323d7911f5ad7e1fc46bdc20eea4749b1872bed.1717072140.git.murilo@disroot.org> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 30 May 2024 12:26:56 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Murilo X-ACL-Warn: , Murilo via Guix-patches X-Patchwork-Original-From: Murilo via Guix-patches via From: Murilo 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 (eww): New variable. Change-Id: I68b7c31e06e78a9b47c623788e1ce7c30dcb3555 --- gnu/packages/rust-apps.scm | 83 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 04f88e769d..871923b85b 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2024 Herman Rimm ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> ;;; Copyright © 2024 Suhail Singh +;;; Copyright © 2024 Murilo ;;; ;;; This file is part of GNU Guix. ;;; @@ -66,6 +67,7 @@ (define-module (gnu packages rust-apps) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-graphics) + #:use-module (gnu packages crates-gtk) #:use-module (gnu packages crates-tls) #:use-module (gnu packages crates-vcs) #:use-module (gnu packages crates-web) @@ -546,6 +548,87 @@ (define-public emacs-lsp-booster configuration instructions.") (license license:expat))) +(define-public eww + (package + (name "eww") + (version "0.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elkowar/eww") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0fd5ycfccrcwnmmdb6bc48rcj4qj9hb6xwbnz7g22dj9a6kffc5g")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #f + #:install-source? #f + #:imported-modules (,@%cargo-build-system-modules (guix build + cargo-build-system)) + #:modules ((guix build utils) + (guix build cargo-build-system) + (ice-9 match)) + #:phases ,#~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (eww (string-append bin "/eww"))) + (install-file "target/release/eww" bin))))) + #:cargo-inputs (("rust-zbus" ,rust-zbus-3) + ("rust-yuck" ,rust-yuck-0.1) + ("rust-x11rb" ,rust-x11rb-0.11) + ("rust-wait-timeout" ,rust-wait-timeout-0.2) + ("rust-unescape" ,rust-unescape-0.1) + ("rust-tokio-util" ,rust-tokio-util-0.7) + ("rust-tokio" ,rust-tokio-1) + ("rust-sysinfo" ,rust-sysinfo-0.30) + ("rust-simplexpr" ,rust-simplexpr-0.1) + ("rust-simple-signal" ,rust-simple-signal-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-serde" ,rust-serde-1) + ("rust-regex" ,rust-regex-1) + ("rust-pretty-env-logger" ,rust-pretty-env-logger-0.5) + ("rust-pango" ,rust-pango-0.17) + ("rust-ordered-stream" ,rust-ordered-stream-0.2) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-notify" ,rust-notify-6) + ("rust-notifier-host" ,rust-notifier-host-0.6) + ("rust-nix" ,rust-nix-0.27) + ("rust-maplit" ,rust-maplit-1) + ("rust-log" ,rust-log-0.4) + ("rust-libc" ,rust-libc-0.2) + ("rust-itertools" ,rust-itertools-0.12) + ("rust-gtk-layer-shell" ,rust-gtk-layer-shell-0.6) + ("rust-gtk" ,rust-gtk-0.17) + ("rust-grass" ,rust-grass-0.13) + ("rust-glib-macros" ,rust-glib-macros-0.17) + ("rust-glib" ,rust-glib-0.17) + ("rust-gdkx11" ,rust-gdkx11-0.17) + ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.17) + ("rust-gdk" ,rust-gdk-0.17) + ("rust-futures" ,rust-futures-0.3) + ("rust-extend" ,rust-extend-1) + ("rust-eww-shared-util" ,rust-eww-shared-util-0.1) + ("rust-derive-more" ,rust-derive-more-0.99) + ("rust-codespan-reporting" ,rust-codespan-reporting-0.11) + ("rust-clap-complete" ,rust-clap-complete-4) + ("rust-clap" ,rust-clap-4) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.17) + ("rust-cairo-rs" ,rust-cairo-rs-0.17) + ("rust-bincode" ,rust-bincode-1) + ("rust-anyhow" ,rust-anyhow-1)))) + (native-inputs (list pkg-config glib gtk+ libdbusmenu gtk-layer-shell)) + (home-page "https://elkowar.github.io/eww/") + (synopsis "ElKowars wacky widgets") + (description + "Elkowars Wacky Widgets is a standalone widget system made in Rust that +allows you to implement your own, custom widgets in any window manager.") + (license license:expat))) + (define-public eza (package (name "eza")