Subject: [bug#75098] [PATCH rust-team 1/2] gnu: rust-tikv-jemalloc-sys-0.6: Use override-jemalloc phases.

From: Herman Rimm <[email-masked]>
Date: Wed, 25 Dec 2024 21:35:45 +0100

* gnu/packages/crates-io.scm (rust-tikv-jemalloc-sys-0.6): Adjust.

Change-Id: I579e7ac913f5b5123ee29ebd0889fea2ab18e363
---
 gnu/packages/crates-io.scm | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 13d222c5de..58cfd7f1c8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -88910,16 +88910,7 @@ (define-public rust-tikv-jemalloc-sys-0.6
     (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"))))))))
+       #:phases ,override-jemalloc))
     (inputs (list jemalloc))
     (home-page "https://github.com/tikv/jemallocator")
     (synopsis "Rust FFI bindings to jemalloc")
-- 
2.45.2