summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2026-04-29 18:01:07 +0300
committerZheng Junjie <z572@z572.online>2026-08-30 11:45:33 +0800
commit1b725737d28dcaba44cc6fe78355a8916c49d8bb (patch)
tree28d6eb21e28a2142ecc5f43c5dae27be72b2aae0 /gnu
parent8c77a0633938b93845989178d0299774baea386c (diff)
gnu: Add rust-1.95.
* gnu/packages/rust.scm (rust-1.95): New variable. Change-Id: Id79077ea01bfcc08881c3ff545f3c7bda15c2702
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/rust.scm61
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index dc5df5af41f..6505179a96d 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1918,6 +1918,67 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1918 (copy-recursively "stage2/lib" 1918 (copy-recursively "stage2/lib"
1919 (string-append out "/lib"))))))))))))) 1919 (string-append out "/lib")))))))))))))
1920 1920
1921(define-public rust-1.95
1922 (let ((base-rust
1923 (rust-bootstrapped-package
1924 rust-1.94 "1.95.0"
1925 "05d53hj717ildhvm3rln7821r08nzbbfk72nqcvpb5j67sl856za")))
1926 (package
1927 (inherit base-rust)
1928 (source
1929 (origin
1930 (inherit (package-source base-rust))
1931 (snippet
1932 '(begin
1933 (for-each delete-file-recursively
1934 '("src/llvm-project"
1935 "vendor/curl-sys-0.4.79+curl-8.12.0/curl"
1936 "vendor/curl-sys-0.4.83+curl-8.15.0/curl"
1937 "vendor/curl-sys-0.4.84+curl-8.17.0/curl"
1938 "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc"
1939 "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1940 "vendor/libffi-sys-4.1.0/libffi"
1941 "vendor/libmimalloc-sys-0.1.44/c_src/mimalloc"
1942 "vendor/libz-sys-1.1.21/src/zlib"
1943 "vendor/libz-sys-1.1.23/src/zlib"
1944 "vendor/openssl-src-111.28.2+1.1.1w/openssl"
1945 "vendor/openssl-src-300.5.0+3.5.0/openssl"
1946 "vendor/openssl-src-300.5.4+3.5.4/openssl"
1947 "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1948 "vendor/tikv-jemalloc-sys-0.6.1+5.3.0-1-\
1949ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1950 ;; Remove vendored dynamically linked libraries.
1951 ;; find . -not -type d -executable -exec file {} \+ | grep ELF
1952 ;; Also remove the bundled (mostly Windows) libraries.
1953 (for-each delete-file
1954 (find-files "vendor" "\\.(a|dll|exe|lib)$"))
1955 ;; Use the packaged nghttp2.
1956 (for-each
1957 (lambda (ver)
1958 (let ((vendored-dir
1959 (format #f "vendor/libnghttp2-sys-~a/nghttp2" ver))
1960 (build-rs
1961 (format #f "vendor/libnghttp2-sys-~a/build.rs" ver)))
1962 (delete-file-recursively vendored-dir)
1963 (delete-file build-rs)
1964 (call-with-output-file build-rs
1965 (lambda (port)
1966 (format port "fn main() {~@
1967 println!(\"cargo:rustc-link-lib=nghttp2\");~@
1968 }~%")))))
1969 '("0.1.11+1.64.0"))
1970 ;; Adjust vendored dependency to explicitly use rustix with libc
1971 ;; backend.
1972 (substitute* '("vendor/tempfile-3.14.0/Cargo.toml"
1973 "vendor/tempfile-3.16.0/Cargo.toml"
1974 "vendor/tempfile-3.19.1/Cargo.toml"
1975 "vendor/tempfile-3.20.0/Cargo.toml"
1976 "vendor/tempfile-3.21.0/Cargo.toml"
1977 "vendor/tempfile-3.23.0/Cargo.toml"
1978 "vendor/tempfile-3.24.0/Cargo.toml")
1979 (("features = \\[\"fs\"" all)
1980 (string-append all ", \"use-libc\""))))))))))
1981
1921(define (make-ignore-test-list strs) 1982(define (make-ignore-test-list strs)
1922 "Function to make creating a list to ignore tests a bit easier." 1983 "Function to make creating a list to ignore tests a bit easier."
1923 (map (lambda (str) 1984 (map (lambda (str)