guix-commits
[Top][All Lists]
Advanced

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

37/58: gnu: Add rust-perf-event-open-sys-1.


From: guix-commits
Subject: 37/58: gnu: Add rust-perf-event-open-sys-1.
Date: Sun, 13 Jun 2021 13:15:43 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

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

    gnu: Add rust-perf-event-open-sys-1.
    
    * gnu/packages/crates-io.scm (rust-perf-event-open-sys-1): 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 6fb9a36..779e4ca 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30453,6 +30453,33 @@ runtime support for rust-peg grammars.  To use 
rust-peg, see the peg crate.")
      "This package provides a simple and simplistic string parsing library.")
     (license license:expat)))
 
+(define-public rust-perf-event-open-sys-1
+  (package
+    (name "rust-perf-event-open-sys")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "perf-event-open-sys" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "06jnb2jkwjinpj4hc41kbwsqbxdb1ywy5vci4ggly8rcvbsyv6yf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2))))
+    (home-page
+     "https://github.com/jimblandy/perf-event-open-sys.git";)
+    (synopsis
+     "Unsafe, direct bindings for Linux's perf_event_open system call")
+    (description
+     "This package provides a unsafe, direct bindings for Linux's
+perf_event_open system call, with associated types and constants.")
+    (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]