summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-08 12:13:59 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-10-18 11:36:17 +0300
commitc68f15cd8e46766fbfc98dcdc13743c834af23e4 (patch)
treea291892f305ec779c8e3dc5ee1b70db17fe13d8c /gnu
parent14165eaaa0064885b88920aea27756ee7af24ecb (diff)
downloadguix-c68f15cd8e46766fbfc98dcdc13743c834af23e4.tar.gz
gnu: rust-addr2line-0.17: Fix building.
* gnu/packages/crates-io.scm (rust-addr2line-0.17)[source]: Add snippet
to correctly build one of the dependency crates.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 636e64d664..32301bcde5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1869,9 +1869,17 @@ Rust, using gimli.")
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "0sw16zqy6w0ar633z69m7lw6gb0k1y7xj3387a8wly43ij5div5r"))))
+                "0sw16zqy6w0ar633z69m7lw6gb0k1y7xj3387a8wly43ij5div5r"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (substitute* "Cargo.toml.orig"
+                    (("(cpp_demangle =.*)default-features = false,(.*)" _ first last)
+                     (string-append first last))
+                    ((".*auxiliary.*") ""))
+                  (copy-file "Cargo.toml.orig" "Cargo.toml")))))
     (arguments
-     `(#:tests? #false ;use of undeclared crate or module `auxiliary`
+     `(#:tests? #false  ; Not all files included.
        #:cargo-inputs
        (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
         ("rust-cpp-demangle" ,rust-cpp-demangle-0.3)