[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: Add rust-jemallocator-0.1.
From: |
guix-commits |
Subject: |
03/07: gnu: Add rust-jemallocator-0.1. |
Date: |
Wed, 19 Feb 2020 03:04:56 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 84eb24b68a39cc10609f93f60d84f34aedfc6129
Author: Efraim Flashner <address@hidden>
AuthorDate: Wed Feb 19 09:40:07 2020 +0200
gnu: Add rust-jemallocator-0.1.
* gnu/packages/crates-io.scm (rust-jemallocator-0.1): New variable.
---
gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 78f8d9b..07679bc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6177,6 +6177,36 @@ wasm-bindgen crate.")
"This package provides a Rust allocator backed by jemalloc.")
(license (list license:expat license:asl2.0))))
+(define-public rust-jemallocator-0.1
+ (package
+ (inherit rust-jemallocator-0.3)
+ (name "rust-jemallocator")
+ (version "0.1.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "jemallocator" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1csabk36p06nlh3qxxsg6nkf074b2jq2cld5zriq0xazqqmd834z"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#: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)))))
+ (native-inputs
+ `(("jemalloc" ,jemalloc)))))
+
(define-public rust-json-0.11
(package
(name "rust-json")
- branch master updated (c6c4477 -> ba7ead2), guix-commits, 2020/02/19
- 01/07: gnu: Add rust-osmesa-sys-0.1., guix-commits, 2020/02/19
- 03/07: gnu: Add rust-jemallocator-0.1.,
guix-commits <=
- 02/07: gnu: Add rust-jemalloc-sys-0.1., guix-commits, 2020/02/19
- 06/07: gnu: Add rust-lazy-static-0.1., guix-commits, 2020/02/19
- 07/07: gnu: Add rust-nom-3., guix-commits, 2020/02/19
- 04/07: gnu: rust-nom-4.2: Fix dependencies, guix-commits, 2020/02/19
- 05/07: gnu: Add rust-lazy-static-0.2., guix-commits, 2020/02/19