summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-07-02 11:41:03 +0300
committerHilton Chain <hako@ultrarare.space>2025-08-21 19:09:03 +0800
commit3fa7d009209540020e6949bda0ee92a69093927d (patch)
treec6fd6dfc9f842079a85d93f6b65353a85b8390d9 /gnu/packages
parent0617edfd7f7f2293c233afea3b6e98a37cad6744 (diff)
gnu: Add rust-1.86.
* gnu/packages/rust.scm (rust-1.86): New variable. Change-Id: I01f4d4e0953199b6f26d639274b69c0c4c4164dd Signed-off-by: Hilton Chain <hako@ultrarare.space>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/rust.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index c24b7714052..f445516df9c 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1320,6 +1320,45 @@ safety and thread safety guarantees.")
1320 (("features = \\[\"fs\"" all) 1320 (("features = \\[\"fs\"" all)
1321 (string-append all ", \"use-libc\"")))))))))) 1321 (string-append all ", \"use-libc\""))))))))))
1322 1322
1323(define-public rust-1.86
1324 (let ((base-rust
1325 (rust-bootstrapped-package rust-1.85 "1.86.0"
1326 "107d3vbmwhn4b71gzr1kv31jwwyld7dxj9yj8jh00ygndll2fah2")))
1327 (package
1328 (inherit base-rust)
1329 (source
1330 (origin
1331 (inherit (package-source base-rust))
1332 (snippet
1333 '(begin
1334 (for-each delete-file-recursively
1335 '("src/llvm-project"
1336 "vendor/jemalloc-sys-0.3.2"
1337 "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc"
1338 "vendor/openssl-src-111.17.0+1.1.1m/openssl"
1339 "vendor/openssl-src-111.28.2+1.1.1w/openssl"
1340 "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1341 "vendor/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1342 ;; Remove vendored dynamically linked libraries.
1343 ;; find . -not -type d -executable -exec file {} \+ | grep ELF
1344 ;; Also remove the bundled (mostly Windows) libraries.
1345 (for-each delete-file
1346 (find-files "vendor" "\\.(a|dll|exe|lib)$"))
1347 ;; Adjust vendored dependency to explicitly use rustix with libc backend.
1348 (substitute* '("vendor/tempfile-3.14.0/Cargo.toml"
1349 "vendor/tempfile-3.15.0/Cargo.toml"
1350 "vendor/tempfile-3.16.0/Cargo.toml")
1351 (("features = \\[\"fs\"" all)
1352 (string-append all ", \"use-libc\"")))))))
1353 (arguments
1354 (substitute-keyword-arguments (package-arguments base-rust)
1355 ((#:phases phases)
1356 `(modify-phases ,phases
1357 (add-after 'use-system-llvm 'disable-lld-wrapper
1358 (lambda _
1359 (substitute* "config.toml"
1360 (("\\[rust\\]") "[rust]\nlld = false")))))))))))
1361
1323(define (make-ignore-test-list strs) 1362(define (make-ignore-test-list strs)
1324 "Function to make creating a list to ignore tests a bit easier." 1363 "Function to make creating a list to ignore tests a bit easier."
1325 (map (lambda (str) 1364 (map (lambda (str)