unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51193] Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4.
@ 2021-10-13 22:07 phodina via Guix-patches via
  2021-10-13 22:10 ` [bug#51193] Subject: [PATCH 2/4] gnu: Add rust-libpulse-sys-1 phodina via Guix-patches via
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: phodina via Guix-patches via @ 2021-10-13 22:07 UTC (permalink / raw)
  To: 51193

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.

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




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-08 17:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 22:07 [bug#51193] Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4 phodina via Guix-patches via
2021-10-13 22:10 ` [bug#51193] Subject: [PATCH 2/4] gnu: Add rust-libpulse-sys-1 phodina via Guix-patches via
2021-10-13 22:11 ` [bug#51193] Subject: [PATCH 3/4] gnu: Add rust-libpulse-binding-2 phodina via Guix-patches via
2021-10-13 22:11 ` [bug#51193] Subject: [PATCH 4/4] gnu: Add i3status-rust phodina via Guix-patches via
2021-11-08  8:55 ` bug#51193: Subject: [PATCH 1/4] gnu: Add rust-cpuprofiler-0.0.4 Efraim Flashner
2021-11-08 17:34 ` [bug#51193] [PATCH] gnu: Update i3status-rust phodina via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).