From 98f9193231f85b341b1de6de5b60e298320c56ef Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Mar 2024 10:55:05 +0200 Subject: [PATCH] gnu: Add rust-addr2line-0.21. * gnu/packages/crates-io.scm (rust-addr2line-0.21): New variable. (rust-addr2line-0.19): Inherit from rust-addr2line-0.21. Change-Id: I26e873090a475b4fb5d7548dc7fa7f058da0feca --- gnu/packages/crates-io.scm | 47 +++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 825943a0de..b06c9dfe27 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -449,8 +449,46 @@ syntax (e.g. EasyList, EasyPrivacy) filter parsing and matching.") ("rust-sha2" ,rust-sha2-0.9) ("rust-tokio" ,rust-tokio-1)))))) +(define-public rust-addr2line-0.21 + (package + (name "rust-addr2line") + (version "0.21.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "addr2line" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1jx0k3iwyqr8klqbzk6kjvr496yd94aspis10vwsj5wy7gib4c4a")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; use of undeclared crate or module `auxiliary` + #:cargo-inputs + (("rust-compiler-builtins" ,rust-compiler-builtins-0.1) + ("rust-cpp-demangle" ,rust-cpp-demangle-0.4) + ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) + ("rust-gimli" ,rust-gimli-0.28) + ("rust-memmap2" ,rust-memmap2-0.5) + ("rust-object" ,rust-object-0.32) + ("rust-rustc-demangle" ,rust-rustc-demangle-0.1) + ("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1) + ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1) + ("rust-smallvec" ,rust-smallvec-1)) + #:cargo-development-inputs (("rust-backtrace" ,rust-backtrace-0.3) + ("rust-clap" ,rust-clap-4) + ("rust-findshlibs" ,rust-findshlibs-0.10) + ("rust-libtest-mimic" ,rust-libtest-mimic-0.6) + ("rust-typed-arena" ,rust-typed-arena-2)))) + (home-page "https://github.com/gimli-rs/addr2line") + (synopsis "Symbolication library written in Rust, using gimli") + (description + "This package provides a cross-platform symbolication library written in +Rust, using gimli.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-addr2line-0.19 (package + (inherit rust-addr2line-0.21) (name "rust-addr2line") (version "0.19.0") (source (origin @@ -460,7 +498,6 @@ syntax (e.g. EasyList, EasyPrivacy) filter parsing and matching.") (sha256 (base32 "15ywmr5wx22q69ffnn79qp65ir5p1x0k2q06plcpv6v74c5xcvx7")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; use of undeclared crate or module `auxiliary` #:cargo-inputs @@ -479,13 +516,7 @@ syntax (e.g. EasyList, EasyPrivacy) filter parsing and matching.") ("rust-findshlibs" ,rust-findshlibs-0.10) ("rust-memmap2" ,rust-memmap2-0.5) ("rust-rustc-test" ,rust-rustc-test-0.3) - ("rust-typed-arena" ,rust-typed-arena-2)))) - (home-page "https://github.com/gimli-rs/addr2line") - (synopsis "Symbolication library written in Rust, using gimli") - (description - "This package provides a cross-platform symbolication library written in -Rust, using gimli.") - (license (list license:asl2.0 license:expat)))) + ("rust-typed-arena" ,rust-typed-arena-2)))))) (define-public rust-addchain-0.2 (package