From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id D6EnOBBZZ2FdugAAgWs5BA (envelope-from ) for ; Thu, 14 Oct 2021 00:09:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aAVkMxBZZ2EtWwAAB5/wlQ (envelope-from ) for ; Wed, 13 Oct 2021 22:09:20 +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 5F5E92F877 for ; Thu, 14 Oct 2021 00:09:20 +0200 (CEST) Received: from localhost ([::1]:57108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mamR5-0005Kd-DU for larch@yhetil.org; Wed, 13 Oct 2021 18:09:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mamQq-0005Hy-7V for guix-patches@gnu.org; Wed, 13 Oct 2021 18:09:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50495) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mamQo-0002Ne-Cc for guix-patches@gnu.org; Wed, 13 Oct 2021 18:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mamQo-0002zv-6I for guix-patches@gnu.org; Wed, 13 Oct 2021 18:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51193] Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Oct 2021 22:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51193@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.163416288611459 (code B ref -1); Wed, 13 Oct 2021 22:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2021 22:08:06 +0000 Received: from localhost ([127.0.0.1]:33808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mamPu-0002yk-3y for submit@debbugs.gnu.org; Wed, 13 Oct 2021 18:08:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:58974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mamPp-0002yI-DT for submit@debbugs.gnu.org; Wed, 13 Oct 2021 18:08:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mamPp-0004GE-8z for guix-patches@gnu.org; Wed, 13 Oct 2021 18:08:01 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:36604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mamPJ-0005kD-S5 for guix-patches@gnu.org; Wed, 13 Oct 2021 18:08:00 -0400 Date: Wed, 13 Oct 2021 22:07:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1634162831; bh=WQMUsMQK6qzzh8fwoMhHSj96ZIuR4QF4iniabPBucLE=; h=Date:To:From:Reply-To:Subject:From; b=kXdLL/dx4nInk8qaU4umtwHg6B8n6PPl0g1R76D1fR4PkgQiOz5+j4KzaZOVY/iI3 ugMbsTir2WuA2JWzRqw5tQfjCQ78J9eVRaBNyjp/hYrwZFHbotBrf2p75EP31Qqvpk nND5lpHpLabRh6k2fQUCkBZXumusDX+hfaiZkJ1g= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.134; envelope-from=phodina@protonmail.com; helo=mail-40134.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, 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+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=1634162960; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WQMUsMQK6qzzh8fwoMhHSj96ZIuR4QF4iniabPBucLE=; b=JgMy4oVWCgktIw4XR24541J46OaDjCfV9x2Zm2yQBpftnxj2ImLpSJUPlWDq7xJtd5JNGm dkUN46ykvdcBbCqE8ApUPWPdo4q0iV5aNBGXGNh6ZZzO6CA0fSgLjjy0BDqtRWyK2N1jX1 z4Z8wBASo1LQx/y7hMKikLXtOwrCOHjTqxjqBqUQTspsWenExXsKk2cnIqH1JYmQ2o0/wz yVJ6tc+CQ93ZjB7XzBL0Lex+La9MTfDb6Xkn68d5ZWDRt9I2mcDnHqASfHUk+FnoSMbpkD Bbx8WfYTqRKTrxzc7leikk/jFqfSilbf0A1w3+uQe6UPu9X6gHp2S8dr+plIFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634162960; a=rsa-sha256; cv=none; b=RNfkhy7wMtC/WKNEenvMVmD0KZhxuZABYtWtwk/uxLP4jPj79GdDzKbPfKYP4bOzUgE9c7 QZgr0R/UPLJhJf1esQcvKZFbFU+WSsYoAEjTGWe46o3azE8U/41rsA3jRdeulmcgyPSLci 4xPdlWDOv+qKH4zikiDWGOp2hkMb+1Ti1vxPySS38oq+EF3SpJCGCYTqxvI7JY+D+QiY/n f+E5JWURsf7tZOXYuAmniNIg+sDxHcA9UhHpXPCLIFVygoErqQmT61czyrIS1nS17fKWHl 3Vf2+VjGgAn+fc2CQijS04tRhbOeScvH9aJ2HxtSS6H7CCd7FYUTtr1Q2aguKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="kXdLL/dx"; 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: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="kXdLL/dx"; 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: 5F5E92F877 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: w4Uj2BCi4BUb Hi, these patches add tool similar to i3status, polybar, etc which is used in W= M like i3 or sway to display the contents of the bars. This one is written in Rust and can be used under Wayland and X11. Therefor= e I placed it into the rust-apps.scm rather than wm.scm. But I'm open to cr= itical review :-) Petr --8<---------------cut here---------------start------------->8--- * gnu/packages/crates-io.scm (rust-cpuprofiler-0.0.4): New variable. diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 089b9f456c..5fb7bd9e69 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages admin) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages crates-gtk) #:use-module (gnu packages crypto) @@ -10461,6 +10462,32 @@ to the @code{is_x86_feature_detected!} macro.") to @code{is_x86_feature_detected}.") (license (list license:expat license:asl2.0)))) +(define-public rust-cpuprofiler-0.0.4 + (package + (name "rust-cpuprofiler") + (version "0.0.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "cpuprofiler" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0az588yyl9r13w4k7xfdh5ckfaq52fwpjry2q2hblazxpjflgy23")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-error-chain" ,rust-error-chain-0.12) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-pkg-config" ,rust-pkg-config-0.3)))) + (inputs `(("gperftools" ,gperftools))) + (home-page + "https://github.com/AtheMathmo/cpuprofiler") + (synopsis "Bindings to google's cpu profiler") + (description "Bindings to google's cpu profiler") + (license license:bsd-2))) + (define-public rust-crates-index-0.13 (package (name "rust-crates-index") -- 2.33.0