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 6IRuM/5ZZ2FpywAAgWs5BA (envelope-from ) for ; Thu, 14 Oct 2021 00:13:18 +0200 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 kJgWL/5ZZ2FaLAAAbx9fmQ (envelope-from ) for ; Wed, 13 Oct 2021 22:13:18 +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 A0BCA33B8E for ; Thu, 14 Oct 2021 00:13:17 +0200 (CEST) Received: from localhost ([::1]:34174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mamUu-0000h1-Ii for larch@yhetil.org; Wed, 13 Oct 2021 18:13:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mamUg-0000dL-Tq for guix-patches@gnu.org; Wed, 13 Oct 2021 18:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50515) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mamUg-0001pI-Dt for guix-patches@gnu.org; Wed, 13 Oct 2021 18:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mamUg-000370-9Q for guix-patches@gnu.org; Wed, 13 Oct 2021 18:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51193] Subject: [PATCH 4/4] gnu: Add i3status-rust. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Oct 2021 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51193@debbugs.gnu.org Received: via spool by 51193-submit@debbugs.gnu.org id=B51193.163416312811898 (code B ref 51193); Wed, 13 Oct 2021 22:13:02 +0000 Received: (at 51193) by debbugs.gnu.org; 13 Oct 2021 22:12:08 +0000 Received: from localhost ([127.0.0.1]:33828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mamTo-00035q-2S for submit@debbugs.gnu.org; Wed, 13 Oct 2021 18:12:08 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:36417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mamTl-00035D-Tg for 51193@debbugs.gnu.org; Wed, 13 Oct 2021 18:12:06 -0400 Date: Wed, 13 Oct 2021 22:11:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1634163115; bh=7BMX2AmGUg61fz/HcAUIoFm0zJCV+jtU3aRfFKWSFQw=; h=Date:To:From:Reply-To:Subject:From; b=dbpWdwbofmT+im4SQwsXU5/IF6iP2pMLqs/WjI9N/KW8KM7XS0uakELS24plRu3d8 0lBFOGt5PgcvK7fXL9f2G9XgPQghXMjA3GtThvzKcqJNfR9U4KoUcKoyOqaFyEsc0q 769cKIFFAamPbRp/9C4gtJNMxNlfpQpE7Jym8SpU= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634163198; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7BMX2AmGUg61fz/HcAUIoFm0zJCV+jtU3aRfFKWSFQw=; b=d6+d0QNqhBeOe/4AjSipjbylCCwW0cWhwawrWqkNeHZSj5GD6r7b0cLsAx4pvajWF2i6mT v9qkNLQ7gFzrTNhf/inDPYwvbhkcA306tVuytBVJmF1chekBQOIIGlBfa3ya+qMhCIhCdO 6mNqiZzbNFeyOnNVFlbvYkoDfqNamCVPxu5jooOZ7iMkJU310ZsTUwKdyZKmXGbr5f4Qgf u9alYzBdTFgUYMqj+djAuM6Ue3JpjY9ZKgk3FYIbWMkRNDEz1S3KQ+4gGAjoybzLe5luyG 0+wSnHRp4IOLjqoj45wr4ZCj0vz6vXlViygcIscD+mzjSYPYHLQu/spAzP4tMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634163198; a=rsa-sha256; cv=none; b=an+AhW9owbHzGMERkvo4RERhdwcUQzWo4YFc7W44f2WBdhNt+c1GSfyT3MWIFXeI+okl7U 5MAVPqVjdavNMCcaHSdeMNEJS52UAmZLok14xhdgl50qruLWG+IxzJ25kLr7zoXGYtFZE3 jo9guD9EX8PvOWGiC92xTQh7m6HTEHGtPcDpks6reDpqr7Vbg3tsOWBD2Ie8sXPKHuJXdO jOq20zcL5M++yVUHwNfyDdZqy4fFPKv8JEYwlCImI3tp8qqNJU9bn2u2XPFkaRLcCQll6c OxaJrAHjVyxgWPoPCJ+O028vs+gMtL6Zx5cyrKen4sV7eWnQ2jGGfr5XPLOaYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=dbpWdwbo; dmarc=pass (policy=none) header.from=gnu.org; 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.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=dbpWdwbo; dmarc=pass (policy=none) header.from=gnu.org; 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: A0BCA33B8E X-Spam-Score: -3.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: dL6JCfC0LRRJ * gnu/packages/rust-apps.scm (i3status-rust): New variable. * gnu/packages/patches/i3status-rust-enable-unstable-features.patch: New fi= le. diff --git a/gnu/packages/patches/i3status-rust-enable-unstable-features.pa= tch b/gnu/packages/patches/i3status-rust-enable-unstable-features.patch new file mode 100644 index 0000000000..edbbef7534 --- /dev/null +++ b/gnu/packages/patches/i3status-rust-enable-unstable-features.patch @@ -0,0 +1,20 @@ +From 3006390c0058f06c255d9850327163aebcdc3b40 Mon Sep 17 00:00:00 2001 +From: Petr Hodina +Date: Mon, 11 Oct 2021 22:35:39 +0200 +Subject: [PATCH] Enable unstable features. + + +diff --git a/src/main.rs b/src/main.rs +index d9e964b..820e22e 100644 +--- a/src/main.rs ++++ b/src/main.rs +@@ -1,3 +1,6 @@ ++#![feature(bool_to_option)] ++#![feature(clamp)] ++ + #[macro_use] + mod de; + #[macro_use] +-- +2.33.0 + diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 27cd57de8b..39bfc9fba2 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright =C2=A9 2021 Alexandru-Sergiu Marton ;;; Copyright =C2=A9 2021 Maxim Cournoyer +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,6 +35,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) + #:use-module (guix utils) #:use-module (gnu packages admin) #:use-module (gnu packages compression) #:use-module (gnu packages crates-io) @@ -41,12 +43,14 @@ #:use-module (gnu packages curl) #:use-module (gnu packages documentation) #:use-module (gnu packages fontutils) + #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages jemalloc) #:use-module (gnu packages linux) #:use-module (gnu packages ssh) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python-xyz) #:use-module (gnu packages rust) #:use-module (gnu packages tls) @@ -440,6 +444,73 @@ characters, ASCII whitespace characters, other ASCII c= haracters and non-ASCII.") "This package provides a command-line benchmarking tool.") (license (list license:expat license:asl2.0)))) +(define-public i3status-rust + (package + (name "i3status-rust") + (version "0.20.1") + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/greshake/i3status-rust") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version)) + (patches (search-patches "i3status-rust-enable-unstable-feat= ures.patch")) + (sha256 + (base32 + "00gzm3g297s9bfp13vnb623p7dfac3g6cdhz2b3lc6l0kmnnqs1s")))) + (build-system cargo-build-system) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("dbus" ,dbus) + ("pulseaudio" ,pulseaudio) + ("zlib" ,zlib) + ("openssl" ,openssl) + ("curl" ,curl))) + (arguments + `(#:features '("pulseaudio" "libpulse-binding") + #:cargo-inputs + (("rust-chrono" ,rust-chrono-0.4) + ("rust-chrono-tz" ,rust-chrono-tz-0.5) + ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5) + ("rust-curl" ,rust-curl-0.4) ("rust-dbus" ,rust-dbus-0.9) + ("rust-dbus-tree" ,rust-dbus-tree-0.9) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-nix" ,rust-nix-0.20) + ("rust-nl80211" ,rust-nl80211-0.0.2) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-signal-hook" ,rust-signal-hook-0.3) + ("rust-swayipc" ,rust-swayipc-2) + ("rust-toml" ,rust-toml-0.5) + ("rust-cpuprofiler" ,rust-cpuprofiler-0.0.4) + ("rust-inotify" ,rust-inotify-0.9) + ("rust-libpulse-binding" ,rust-libpulse-binding-2) + ("rust-maildir" ,rust-maildir-0.5) + ("rust-notmuch" ,rust-notmuch-0.6) + ("rust-progress" ,rust-progress-0.2) + ("rust-assert-fs" ,rust-assert-fs-1)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-resources-path + (lambda* (#:key outputs #:allow-other-keys) + (let ((resources (string-append %output "/share"))) + (substitute* "src/util.rs" (("/usr/share/i3status-rust") re= sources))))) + (add-after 'install 'install-resources + (lambda* (#:key outputs #:allow-other-keys) + (copy-recursively "files" (string-append %output "/share"))#t= )) + (add-after 'unpack 'enable-unstable-features + (lambda _ + (setenv "RUSTC_BOOTSTRAP" "1") + #t))))) + (synopsis "i3status, written in pure Rust") + (description "i3status-rs is a feature-rich and resource-friendly repl= acement +for i3status, written in pure Rust. It provides a way to display 'blocks' = of +system information (time, battery status, volume, etc) on the i3 bar. It i= s also +compatible with sway.") + (home-page "https://github.com/greshake/i3status-rust") + (license license:gpl3))) + (define-public ripgrep (package (name "ripgrep") -- 2.33.0