diff options
| author | moksh <mysticmoksh@riseup.net> | 2026-02-03 19:14:12 +0530 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-21 10:14:48 +0100 |
| commit | 40ffd1e0b77f90024eab935d39cb95ba72e72867 (patch) | |
| tree | 09e6dd18349c50a003d65059b964cfc3f14f7792 /gnu/packages/rust.scm | |
| parent | f49a59f38fa94906c614dd13243656703b7a3694 (diff) | |
gnu: Add rust-1.93.
* gnu/packages/rust.scm (rust-1.93): New variable.
Change-Id: I8f0acf168ead89f7701303e4a32af29856c79bf3
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/rust.scm')
| -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 40baa214944..0fd5b77fbec 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm | |||
| @@ -1767,6 +1767,66 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc")) | |||
| 1767 | (("features = \\[\"fs\"" all) | 1767 | (("features = \\[\"fs\"" all) |
| 1768 | (string-append all ", \"use-libc\"")))))))))) | 1768 | (string-append all ", \"use-libc\"")))))))))) |
| 1769 | 1769 | ||
| 1770 | (define-public rust-1.93 | ||
| 1771 | (let ((base-rust | ||
| 1772 | (rust-bootstrapped-package | ||
| 1773 | rust-1.92 "1.93.0" | ||
| 1774 | "01d7a1mvyvqmq9khyw5cbnwyngzgb4pxpdwhqgzl669j7kc2n4b9"))) | ||
| 1775 | (package | ||
| 1776 | (inherit base-rust) | ||
| 1777 | (source | ||
| 1778 | (origin | ||
| 1779 | (inherit (package-source base-rust)) | ||
| 1780 | (snippet | ||
| 1781 | '(begin | ||
| 1782 | (for-each delete-file-recursively | ||
| 1783 | '("src/llvm-project" | ||
| 1784 | "vendor/curl-sys-0.4.79+curl-8.12.0/curl" | ||
| 1785 | "vendor/curl-sys-0.4.83+curl-8.15.0/curl" | ||
| 1786 | "vendor/curl-sys-0.4.84+curl-8.17.0/curl" | ||
| 1787 | "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc" | ||
| 1788 | "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" | ||
| 1789 | "vendor/libffi-sys-4.0.0/libffi" | ||
| 1790 | "vendor/libz-sys-1.1.21/src/zlib" | ||
| 1791 | "vendor/libz-sys-1.1.23/src/zlib" | ||
| 1792 | "vendor/libmimalloc-sys-0.1.44/c_src/mimalloc" | ||
| 1793 | "vendor/openssl-src-111.28.2+1.1.1w/openssl" | ||
| 1794 | "vendor/openssl-src-300.5.0+3.5.0/openssl" | ||
| 1795 | "vendor/openssl-src-300.5.4+3.5.4/openssl" | ||
| 1796 | "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" | ||
| 1797 | "vendor/tikv-jemalloc-sys-0.6.1+5.3.0-1-\ | ||
| 1798 | ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc")) | ||
| 1799 | ;; Remove vendored dynamically linked libraries. | ||
| 1800 | ;; find . -not -type d -executable -exec file {} \+ | grep ELF | ||
| 1801 | ;; Also remove the bundled (mostly Windows) libraries. | ||
| 1802 | (for-each delete-file | ||
| 1803 | (find-files "vendor" "\\.(a|dll|exe|lib)$")) | ||
| 1804 | ;; Use the packaged nghttp2. | ||
| 1805 | (for-each | ||
| 1806 | (lambda (ver) | ||
| 1807 | (let ((vendored-dir | ||
| 1808 | (format #f "vendor/libnghttp2-sys-~a/nghttp2" ver)) | ||
| 1809 | (build-rs | ||
| 1810 | (format #f "vendor/libnghttp2-sys-~a/build.rs" ver))) | ||
| 1811 | (delete-file-recursively vendored-dir) | ||
| 1812 | (delete-file build-rs) | ||
| 1813 | (call-with-output-file build-rs | ||
| 1814 | (lambda (port) | ||
| 1815 | (format port "fn main() {~@ | ||
| 1816 | println!(\"cargo:rustc-link-lib=nghttp2\");~@ | ||
| 1817 | }~%"))))) | ||
| 1818 | '("0.1.11+1.64.0")) | ||
| 1819 | ;; Adjust vendored dependency to explicitly use rustix with libc | ||
| 1820 | ;; backend. | ||
| 1821 | (substitute* '("vendor/tempfile-3.14.0/Cargo.toml" | ||
| 1822 | "vendor/tempfile-3.16.0/Cargo.toml" | ||
| 1823 | "vendor/tempfile-3.19.1/Cargo.toml" | ||
| 1824 | "vendor/tempfile-3.20.0/Cargo.toml" | ||
| 1825 | "vendor/tempfile-3.21.0/Cargo.toml" | ||
| 1826 | "vendor/tempfile-3.23.0/Cargo.toml") | ||
| 1827 | (("features = \\[\"fs\"" all) | ||
| 1828 | (string-append all ", \"use-libc\"")))))))))) | ||
| 1829 | |||
| 1770 | (define (make-ignore-test-list strs) | 1830 | (define (make-ignore-test-list strs) |
| 1771 | "Function to make creating a list to ignore tests a bit easier." | 1831 | "Function to make creating a list to ignore tests a bit easier." |
| 1772 | (map (lambda (str) | 1832 | (map (lambda (str) |
