guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#48956] [PATCH 40/58] gnu: Add rust-perf-event-0.4.


From: Zheng Junjie
Subject: [bug#48956] [PATCH 40/58] gnu: Add rust-perf-event-0.4.
Date: Fri, 11 Jun 2021 21:11:49 +0800

From: Zheng junjie <873216071@qq.com>

* gnu/packages/crates-io.scm (rust-perf-event-0.4): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c1742f0588..233c5d31c3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30510,6 +30510,33 @@ runtime support for rust-peg grammars.  To use 
rust-peg, see the peg crate.")
 perf_event_open system call, with associated types and constants.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-perf-event-0.4
+  (package
+    (name "rust-perf-event")
+    (version "0.4.7")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "perf-event" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0rlxmyscr38wynknqqpy82fypq8ywa52ad3dbm22ia7as8n5d5jk"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-libc" ,rust-libc-0.2)
+         ("rust-perf-event-open-sys"
+          ,rust-perf-event-open-sys-1))))
+    (home-page
+      "https://github.com/jimblandy/perf-event.git";)
+    (synopsis
+     "Rust interface to Linux performance monitoring")
+    (description
+     "This package provides a Rust interface to Linux performance monitoring.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-permutohedron-0.2
   (package
     (name "rust-permutohedron")
-- 
2.32.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]