gnu: rust-libmimalloc-sys-0.1: Update to 0.1.35.
* gnu/packages/crates-io.scm (rust-libmimalloc-sys-0.1): Update to 0.1.35. [source]: Add snippet to override the build.rs file. [cargo-inputs]: Add rust-cc-1, rust-libc-0.2, rust-pkg-config-0.3. Remove rust-cmake-0.1. [native-inputs]: Remove cmake-minimal. [inputs]: Add mimalloc.
This commit is contained in:
parent
a6f39f1d68
commit
340b6f97c5
1 changed files with 18 additions and 7 deletions
|
@ -36478,7 +36478,7 @@ functions and static variables these libraries contain.")
|
||||||
(define-public rust-libmimalloc-sys-0.1
|
(define-public rust-libmimalloc-sys-0.1
|
||||||
(package
|
(package
|
||||||
(name "rust-libmimalloc-sys")
|
(name "rust-libmimalloc-sys")
|
||||||
(version "0.1.18")
|
(version "0.1.35")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -36486,17 +36486,28 @@ functions and static variables these libraries contain.")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0bbm03687j9fspvk6nqspmjlvchlvbxydl0mrc1x9i1k6kqiy5c2"))
|
"0r4nrd9xbmhmipw4bvh4xlbzbc7xf74frrsibqglysffgv1vay9r"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin (delete-file-recursively "c_src/mimalloc/bin")))))
|
'(begin (substitute* "Cargo.toml"
|
||||||
|
(("\\[build-dependencies\\.cc\\]" all)
|
||||||
|
(string-append "[build-dependencies.pkg-config]\n"
|
||||||
|
"version = \"0.3\"\n\n"
|
||||||
|
all)))
|
||||||
|
(delete-file "build.rs")
|
||||||
|
(with-output-to-file "build.rs"
|
||||||
|
(lambda _
|
||||||
|
(format #t "fn main() {~@
|
||||||
|
println!(\"cargo:rustc-link-lib=mimalloc\");~@
|
||||||
|
}~%")))))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-inputs
|
`(#:cargo-inputs
|
||||||
(("rust-cty" ,rust-cty-0.2)
|
(("rust-cc" ,rust-cc-1)
|
||||||
("rust-cmake" ,rust-cmake-0.1))))
|
("rust-cty" ,rust-cty-0.2)
|
||||||
(native-inputs
|
("rust-libc" ,rust-libc-0.2)
|
||||||
`(("cmake" ,cmake-minimal)))
|
("rust-pkg-config" ,rust-pkg-config-0.3))))
|
||||||
|
(inputs (list mimalloc))
|
||||||
(home-page "https://github.com/purpleprotocol/mimalloc_rust")
|
(home-page "https://github.com/purpleprotocol/mimalloc_rust")
|
||||||
(synopsis "Sys crate wrapping the mimalloc allocator")
|
(synopsis "Sys crate wrapping the mimalloc allocator")
|
||||||
(description "This package provides a sys crate wrapping the mimalloc
|
(description "This package provides a sys crate wrapping the mimalloc
|
||||||
|
|
Reference in a new issue