[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
412/470: gnu: Add rust-jemallocator-0.5.
From: |
guix-commits |
Subject: |
412/470: gnu: Add rust-jemallocator-0.5. |
Date: |
Thu, 16 Mar 2023 03:02:26 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 7980d990d2d753016fd701ec135c5601081d2344
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 16:33:06 2023 +0200
gnu: Add rust-jemallocator-0.5.
* gnu/packages/crates-io.scm (rust-jemallocator-0.5): New variable.
(rust-jemallocator-0.3): Inherit from rust-jemallocator-0.5.
---
gnu/packages/crates-io.scm | 44 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 37 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 25645f6202..d56c7f066d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29858,8 +29858,44 @@ primitives to an @code{io::Write}.")
(snippet
'(begin (delete-file-recursively "jemalloc") #t))))))
+(define-public rust-jemallocator-0.5
+ (package
+ (name "rust-jemallocator")
+ (version "0.5.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "jemallocator" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
"19kfd64hhh2anzfqm1c0yg0mg0nkmlzmcaw2njq543486x0m3hhn"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-jemalloc-sys" ,rust-jemalloc-sys-0.5)
+ ("rust-libc" ,rust-libc-0.2))
+ #:cargo-development-inputs
+ (("rust-paste" ,rust-paste-1))
+ #: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 allocator backed by jemalloc")
+ (description
+ "This package provides a Rust allocator backed by jemalloc.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-jemallocator-0.3
(package
+ (inherit rust-jemallocator-0.5)
(name "rust-jemallocator")
(version "0.3.2")
(source
@@ -29871,19 +29907,13 @@ primitives to an @code{io::Write}.")
(sha256
(base32
"0sabfa5118b7l4ars5n36s2fjyfn59w4d6mjs6rrmsa5zky67bj3"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-jemalloc-sys" ,rust-jemalloc-sys-0.3)
("rust-libc" ,rust-libc-0.2))
#:cargo-development-inputs
- (("rust-paste" ,rust-paste-0.1))))
- (home-page "https://github.com/gnzlbg/jemallocator")
- (synopsis "Rust allocator backed by jemalloc")
- (description
- "This package provides a Rust allocator backed by jemalloc.")
- (license (list license:expat license:asl2.0))))
+ (("rust-paste" ,rust-paste-0.1))))))
(define-public rust-jemallocator-0.1
(package
- 230/470: gnu: Add rust-toml-edit-0.18., (continued)
- 230/470: gnu: Add rust-toml-edit-0.18., guix-commits, 2023/03/16
- 259/470: gnu: rust-futures-0.3: Update to 0.3.26., guix-commits, 2023/03/16
- 237/470: gnu: Add rust-rcgen-0.8., guix-commits, 2023/03/16
- 304/470: gnu: Add rust-proptest-derive-0.3., guix-commits, 2023/03/16
- 335/470: gnu: rust-imgref-1: Update to 1.9.4., guix-commits, 2023/03/16
- 338/470: gnu: Add rust-ravif-0.8., guix-commits, 2023/03/16
- 424/470: gnu: Add rust-nu-ansi-term-0.46., guix-commits, 2023/03/16
- 379/470: gnu: Remove rust-lexical-5., guix-commits, 2023/03/16
- 396/470: gnu: gtk+-2: Remove trailing #t from phases., guix-commits, 2023/03/16
- 402/470: gnu: gtk+-2: Skip two more tests., guix-commits, 2023/03/16
- 412/470: gnu: Add rust-jemallocator-0.5.,
guix-commits <=
- 415/470: gnu: rust-nix-0.26: Update to 0.26.2., guix-commits, 2023/03/16
- 442/470: gnu: rust-fixedbitset-0.4: Update to 0.4.2., guix-commits, 2023/03/16
- 444/470: gnu: rust-ring-0.14: Remove pregenerated files., guix-commits, 2023/03/16
- 450/470: gnu: Add rust-aes-ctr-0.6., guix-commits, 2023/03/16
- 456/470: gnu: rust-1.55: Remove bundled libraries., guix-commits, 2023/03/16
- 457/470: gnu: rust-1.61: Remove riscv64-linux jemalloc workaround., guix-commits, 2023/03/16
- 467/470: gnu: sniffglue: Add missing input., guix-commits, 2023/03/16
- 180/470: gnu: Add rust-hkdf-0.12., guix-commits, 2023/03/16
- 422/470: gnu: Add rust-test-case-macros-2., guix-commits, 2023/03/16
- 375/470: gnu: rav1e: Update to 0.6.3., guix-commits, 2023/03/16