Subject: [PATCH rust-team 4/8] gnu: rust-jemalloc-sys-0.3: Use override-jemalloc phases.

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

* gnu/packages/crates-io.scm (rust-jemalloc-sys-0.3)[arguments]: Adjust.

Change-Id: Ifc1f2ad115054f7c7db2447e8680cc070273c6f3
---
 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 0a499a6400..05d61f4209 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39297,14 +39297,7 @@ (define-public rust-jemalloc-sys-0.3
         ;; Build dependencies:
         ("rust-cc" ,rust-cc-1)
         ("rust-fs-extra" ,rust-fs-extra-1))
-       #: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))))
 
 (define-public rust-jemalloc-sys-0.1
   (package
-- 
2.45.2