Subject: [bug#75097] [PATCH rust-team 6/8] gnu: rust-jemallocator-0.1: Use override-jemalloc phases.

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

* gnu/packages/crates-io.scm (rust-jemallocator-0.1)[arguments]: Adjust.

Change-Id: Ida6507dff8624d22dc1c6dd77e11426179edb512
---
 gnu/packages/crates-io.scm | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index afc90512c2..1216e85226 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39388,14 +39388,7 @@ (define-public rust-jemallocator-0.1
      `(#:cargo-inputs
        (("rust-jemalloc-sys" ,rust-jemalloc-sys-0.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")))
-               (setenv "JEMALLOC_OVERRIDE"
-                       (string-append jemalloc "/lib/libjemalloc_pic.a")))
-             #t)))))
+       #:phases ,override-jemalloc))
     (native-inputs
      (list jemalloc))))
 
-- 
2.45.2