[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/111: gnu: Add rust-tikv-jemallocator-0.6.
From: |
guix-commits |
Subject: |
40/111: gnu: Add rust-tikv-jemallocator-0.6. |
Date: |
Thu, 21 Nov 2024 08:33:28 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit f247a8b76c8057b5879b3307ee60538c1a22f4c7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Nov 20 20:38:24 2024 +0200
gnu: Add rust-tikv-jemallocator-0.6.
* gnu/packages/crates-io.scm (rust-tikv-jemallocator-0.6): New variable.
(rust-tikv-jemallocator-0.4): Inherit from rust-tikv-jemallocator-0.6.
Change-Id: Ib2a6f1a77f5a32c77261aa8614e2dfad0022a950
---
gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++------------
1 file changed, 36 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9d933c43ce..2c53b161ee 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -84457,33 +84457,57 @@ system.")
("rust-fs-extra" ,rust-fs-extra-1)
("rust-libc" ,rust-libc-0.2))))))
+(define-public rust-tikv-jemallocator-0.6
+ (package
+ (name "rust-tikv-jemallocator")
+ (version "0.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tikv-jemallocator" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0r985npb7d9hrbs3mb0bkfbv0nvzjpgvzsbpyj21bn0qhpqmzv2c"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; use of undeclared crate or module `tikv_jemalloc_ctl`
+ #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+ ("rust-tikv-jemalloc-sys" ,rust-tikv-jemalloc-sys-0.6))
+ #: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"))))))))
+ (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-tikv-jemallocator-0.4
(package
+ (inherit rust-tikv-jemallocator-0.6)
(name "rust-tikv-jemallocator")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "tikv-jemallocator" version))
- (file-name
- (string-append name "-" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1pyc94yx74s3vxnr22gnpj0b2f87s0vql0c5ayy1b1zb0jkaa51w"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
- ("rust-tikv-jemalloc-sys"
- ,rust-tikv-jemalloc-sys-0.4))))
- (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))))
+ ("rust-tikv-jemalloc-sys" ,rust-tikv-jemalloc-sys-0.4))))))
(define-public rust-tikv-jemalloc-ctl-0.4
(package
- 96/111: gnu: rust-rust-embed-8: Update to 8.5.0., (continued)
- 96/111: gnu: rust-rust-embed-8: Update to 8.5.0., guix-commits, 2024/11/21
- 73/111: gnu: Add rust-gix-ref-0.45., guix-commits, 2024/11/21
- 80/111: gnu: Add rust-gix-filter-0.11., guix-commits, 2024/11/21
- 83/111: gnu: Add rust-gix-diff-0.44., guix-commits, 2024/11/21
- 93/111: gnu: Add rust-cargo-test-support-0.4., guix-commits, 2024/11/21
- 101/111: gnu: rust-xremap: Update to 0.10.2., guix-commits, 2024/11/21
- 98/111: gnu: rust-rust-embed-utils-8: Update to 8.5.0., guix-commits, 2024/11/21
- 106/111: gnu: mullvadbrowser: Fix build., guix-commits, 2024/11/21
- 102/111: gnu: xremap-hyprland: Undeprecate the package., guix-commits, 2024/11/21
- 36/111: gnu: Add rust-rustls-0.23., guix-commits, 2024/11/21
- 40/111: gnu: Add rust-tikv-jemallocator-0.6.,
guix-commits <=
- 43/111: gnu: Add rust-asn1-rs-impl-0.2., guix-commits, 2024/11/21
- 54/111: gnu: rust-gix-date-0.8: Update to 0.8.7., guix-commits, 2024/11/21
- 60/111: gnu: rust-cbindgen: Update to 0.27., guix-commits, 2024/11/21
- 61/111: gnu: rust-cargo: Update to 0.83.0., guix-commits, 2024/11/21
- 70/111: gnu: Add rust-gix-revwalk-0.13., guix-commits, 2024/11/21
- 72/111: gnu: Add rust-gix-refspec-0.23., guix-commits, 2024/11/21
- 75/111: gnu: Add rust-gix-odb-0.61., guix-commits, 2024/11/21
- 78/111: gnu: Add rust-gix-mailmap-0.23., guix-commits, 2024/11/21
- 81/111: gnu: Add rust-gix-discover-0.33., guix-commits, 2024/11/21
- 84/111: gnu: Add rust-gix-config-0.38., guix-commits, 2024/11/21