diff options
| author | moksh <mysticmoksh@riseup.net> | 2026-03-06 12:00:12 +0530 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-03-15 14:49:06 +0200 |
| commit | 82983217d0644f7613c65ba330227cb67446adb0 (patch) | |
| tree | d597a44847a0305c1c29d83e87cc7059255a7341 /gnu/packages | |
| parent | 0b3b7b05d98375a83053d7057b926b88fd139609 (diff) | |
gnu: Add rust-1.94.
* gnu/packages/rust.scm (rust-1.94): New variable.
Closes: guix/guix#6922
Change-Id: I7839ebae9d86f7855ea6dce7bdec2a023ba245a5
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/rust.scm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index da42eff2551..420142aef68 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1827,6 +1827,66 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc")) (("features = \\[\"fs\"" all) (string-append all ", \"use-libc\"")))))))))) +(define-public rust-1.94 + (let ((base-rust + (rust-bootstrapped-package + rust-1.93 "1.94.0" + "0k274dla70wnajjli2w80by9k4nqf2wah1lw9xhzy8gkscf94gxq"))) + (package + (inherit base-rust) + (source + (origin + (inherit (package-source base-rust)) + (snippet + '(begin + (for-each delete-file-recursively + '("src/llvm-project" + "vendor/curl-sys-0.4.79+curl-8.12.0/curl" + "vendor/curl-sys-0.4.84+curl-8.17.0/curl" + "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc" + "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" + "vendor/libffi-sys-4.1.0/libffi" + "vendor/libz-sys-1.1.21/src/zlib" + "vendor/libz-sys-1.1.23/src/zlib" + "vendor/libmimalloc-sys-0.1.44/c_src/mimalloc" + "vendor/openssl-src-111.28.2+1.1.1w/openssl" + "vendor/openssl-src-300.5.0+3.5.0/openssl" + "vendor/openssl-src-300.5.4+3.5.4/openssl" + "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" + "vendor/tikv-jemalloc-sys-0.6.1+5.3.0-1-\ +ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc")) + ;; Remove vendored dynamically linked libraries. + ;; find . -not -type d -executable -exec file {} \+ | grep ELF + ;; Also remove the bundled (mostly Windows) libraries. + (for-each delete-file + (find-files "vendor" "\\.(a|dll|exe|lib)$")) + ;; Use the packaged nghttp2. + (for-each + (lambda (ver) + (let ((vendored-dir + (format #f "vendor/libnghttp2-sys-~a/nghttp2" ver)) + (build-rs + (format #f "vendor/libnghttp2-sys-~a/build.rs" ver))) + (delete-file-recursively vendored-dir) + (delete-file build-rs) + (call-with-output-file build-rs + (lambda (port) + (format port "fn main() {~@ + println!(\"cargo:rustc-link-lib=nghttp2\");~@ + }~%"))))) + '("0.1.11+1.64.0")) + ;; Adjust vendored dependency to explicitly use rustix with libc + ;; backend. + (substitute* '("vendor/tempfile-3.14.0/Cargo.toml" + "vendor/tempfile-3.16.0/Cargo.toml" + "vendor/tempfile-3.19.1/Cargo.toml" + "vendor/tempfile-3.20.0/Cargo.toml" + "vendor/tempfile-3.21.0/Cargo.toml" + "vendor/tempfile-3.23.0/Cargo.toml" + "vendor/tempfile-3.24.0/Cargo.toml") + (("features = \\[\"fs\"" all) + (string-append all ", \"use-libc\"")))))))))) + (define (make-ignore-test-list strs) "Function to make creating a list to ignore tests a bit easier." (map (lambda (str) |
