[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
264/373: gnu: Add rust-jemalloc-sys-0.5.
From: |
guix-commits |
Subject: |
264/373: gnu: Add rust-jemalloc-sys-0.5. |
Date: |
Sun, 16 Apr 2023 07:11:19 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 034dd67f5a7f97ba1a2894a5777a1edc01d553c3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 16:32:14 2023 +0200
gnu: Add rust-jemalloc-sys-0.5.
* gnu/packages/crates-io.scm (rust-jemalloc-sys-0.5): New variable.
(rust-jemalloc-sys-0.3): Inherit from rust-jemalloc-sys-0.5.
---
gnu/packages/crates-io.scm | 46 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0beb12c4f9..a174283dbd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29943,8 +29943,44 @@ primitives to an @code{io::Write}.")
"Sys functions for the Rust bindings of the javacriptcore library.")
(license license:expat)))
+(define-public rust-jemalloc-sys-0.5
+ (package
+ (name "rust-jemalloc-sys")
+ (version "0.5.3+5.3.0-patched")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "jemalloc-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "18bwwikzq2krgafq3811n1zlsrjrayk0kqmjf6smivd7drhmvggr"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (delete-file-recursively "jemalloc")))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cc" ,rust-cc-1)
+ ("rust-libc" ,rust-libc-0.2))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'override-jemalloc
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((jemalloc (assoc-ref inputs "jemalloc")))
+ ;; This flag is needed when not using the bundled jemalloc.
+ ;; https://github.com/tikv/jemallocator/issues/19
+ (setenv
"CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
+ (setenv "JEMALLOC_OVERRIDE"
+ (string-append jemalloc "/lib/libjemalloc_pic.a"))))))))
+ (native-inputs
+ (list jemalloc))
+ (home-page "https://github.com/tikv/jemallocator")
+ (synopsis "Rust FFI bindings to jemalloc")
+ (description "This package provides Rust FFI bindings to jemalloc.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-jemalloc-sys-0.3
(package
+ (inherit rust-jemalloc-sys-0.5)
(name "rust-jemalloc-sys")
(version "0.3.2")
(source
@@ -29958,7 +29994,6 @@ primitives to an @code{io::Write}.")
(modules '((guix build utils)))
(snippet
'(begin (delete-file-recursively "jemalloc") #t))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
@@ -29972,14 +30007,7 @@ primitives to an @code{io::Write}.")
(let ((jemalloc (assoc-ref inputs "jemalloc")))
(setenv "JEMALLOC_OVERRIDE"
(string-append jemalloc "/lib/libjemalloc_pic.a")))
- #t)))))
- (native-inputs
- (list jemalloc))
- (home-page "https://github.com/gnzlbg/jemallocator")
- (synopsis "Rust FFI bindings to jemalloc")
- (description "This package provides Rust FFI bindings to jemalloc.")
- (license (list license:asl2.0
- license:expat))))
+ #t)))))))
(define-public rust-jemalloc-sys-0.1
(package
- 207/373: gnu: rust-js-sys-0.3: Update to 0.3.61., (continued)
- 207/373: gnu: rust-js-sys-0.3: Update to 0.3.61., guix-commits, 2023/04/16
- 216/373: gnu: rust-test-assembler-0.1: Fix inputs., guix-commits, 2023/04/16
- 219/373: gnu: rust-wasm-bindgen-backend-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 220/373: gnu: rust-wasm-bindgen-futures-0.4: Update to 0.4.34., guix-commits, 2023/04/16
- 221/373: gnu: rust-wasm-bindgen-macro-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 222/373: gnu: rust-wasm-bindgen-macro-support-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 223/373: gnu: rust-wasm-bindgen-shared-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 225/373: gnu: rust-wasm-bindgen-test-macro-0.3: Update to 0.3.34., guix-commits, 2023/04/16
- 227/373: gnu: rust-weezl-0.1: Update to 0.1.7., guix-commits, 2023/04/16
- 234/373: gnu: Remove rust-crunchy-0.1., guix-commits, 2023/04/16
- 264/373: gnu: Add rust-jemalloc-sys-0.5.,
guix-commits <=
- 265/373: gnu: Add rust-jemallocator-0.5., guix-commits, 2023/04/16
- 266/373: gnu: rust-linked-hash-map-0.5: Update to 0.5.6., guix-commits, 2023/04/16
- 269/373: gnu: Add rust-ron-0.7., guix-commits, 2023/04/16
- 277/373: gnu: Add rust-normpath-0.3., guix-commits, 2023/04/16
- 211/373: gnu: Add rust-miniz-oxide-0.6., guix-commits, 2023/04/16
- 226/373: gnu: rust-web-sys-0.3: Update to 0.3.61., guix-commits, 2023/04/16
- 229/373: gnu: Add rust-zune-inflate-0.2., guix-commits, 2023/04/16
- 231/373: gnu: Add rust-maybe-rayon-0.1., guix-commits, 2023/04/16
- 235/373: gnu: Add rust-const-fn-assert-0.1., guix-commits, 2023/04/16
- 241/373: gnu: Remove rust-askama-derive-0.10., guix-commits, 2023/04/16