From patchwork Wed Oct 13 22:07:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 33825 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 81B6F27BBE3; Wed, 13 Oct 2021 23:09:28 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,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 48DDF27BBE1 for ; Wed, 13 Oct 2021 23:09:28 +0100 (BST) Received: from localhost ([::1]:57108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mamRD-0005Kd-C3 for patchwork@mira.cbaines.net; Wed, 13 Oct 2021 18:09:27 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi, these patches add tool similar to i3status, polybar, etc which is used in WM 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. Therefore I placed it into the rust-apps.scm rather than wm.scm. But I'm open to critical review :-) Petr --8<---------------cut here---------------start------------->8--- * gnu/packages/crates-io.scm (rust-cpuprofiler-0.0.4): New variable. --- 2.33.0 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")