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

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

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

Change-Id: Iddfad33f6a53aff6faa85d0a3a72b95ffa29ac10
---
 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 1216e85226..aa73b59a9e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51486,14 +51486,7 @@ (define-public rust-nom-6
        (("rust-criterion" ,rust-criterion-0.3)
         ("rust-doc-comment" ,rust-doc-comment-0.3)
         ("rust-jemallocator" ,rust-jemallocator-0.3))
-       #: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))))
 
 (define-public rust-nom-5
-- 
2.45.2