guix-commits
[Top][All Lists]
Advanced

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

40/58: gnu: Add rust-perf-event-0.4.


From: guix-commits
Subject: 40/58: gnu: Add rust-perf-event-0.4.
Date: Sun, 13 Jun 2021 13:15:44 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 6ec682f543ab44a7b74fa3b0736a3f01e89e1c82
Author: Zheng junjie <873216071@qq.com>
AuthorDate: Fri Jun 11 21:11:49 2021 +0800

    gnu: Add rust-perf-event-0.4.
    
    * gnu/packages/crates-io.scm (rust-perf-event-0.4): New variable.
    
    Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
 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 4e1ae1c..1052a43 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30512,6 +30512,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")



reply via email to

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