summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-04-24 15:21:05 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:37 +0300
commite21988b503de0ce8833af0942604904c6ce47b87 (patch)
treec6effb4490cec4f7f93ff7049737758bd056bb98
parent066045747c33fc7735d3eea23373e0ceaaa1ac66 (diff)
downloadguix-e21988b503de0ce8833af0942604904c6ce47b87.tar.gz
gnu: Add rust-indoc-2.
* gnu/packages/crates-io.scm (rust-indoc-2): New variable.
(rust-indoc-1): Inherit from rust-indoc-2.
-rw-r--r--gnu/packages/crates-io.scm34
1 files changed, 26 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dd933e0bd0..374205d5af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29188,25 +29188,23 @@ Rust.")
 Rust.")
     (license license:expat)))
 
-(define-public rust-indoc-1
+(define-public rust-indoc-2
   (package
     (name "rust-indoc")
-    (version "1.0.7")
+    (version "2.0.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "indoc" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1qs42cn8rj7kdpmp1dlkzhv62rfmbx3ffwvsfw67zyq86jm1xaxd"))))
+        (base32 "142nzc474x1xgdzk057yv1yfrgxsk5a9zybbcwwrzp5ih65v8b4z"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #true
-       #:cargo-inputs
-       (("rust-unindent" ,rust-unindent-0.1))
-       #:cargo-development-inputs
+     `(#:cargo-development-inputs
        (("rust-rustversion" ,rust-rustversion-1)
-        ("rust-trybuild" ,rust-trybuild-1))))
+        ("rust-trybuild" ,rust-trybuild-1)
+        ("rust-unindent" ,rust-unindent-0.2))))
     (home-page "https://github.com/dtolnay/indoc")
     (synopsis "Indented document literals for Rust")
     (description
@@ -29215,6 +29213,26 @@ The @code{indoc!()} macro takes a multiline string literal and un-indents it
 at compile time so the leftmost non-space character is in the first column.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-indoc-1
+  (package
+    (inherit rust-indoc-2)
+    (name "rust-indoc")
+    (version "1.0.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "indoc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1qs42cn8rj7kdpmp1dlkzhv62rfmbx3ffwvsfw67zyq86jm1xaxd"))))
+    (arguments
+     `(#:skip-build? #true
+       #:cargo-inputs
+       (("rust-unindent" ,rust-unindent-0.1))
+       #:cargo-development-inputs
+       (("rust-rustversion" ,rust-rustversion-1)
+        ("rust-trybuild" ,rust-trybuild-1))))))
+
 (define-public rust-indoc-0.3
   (package
     (inherit rust-indoc-1)