summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-06-29 12:59:31 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-07-18 20:56:15 +0300
commitc71c92b97a09cfbcdbbf733e5b16c35b786b0513 (patch)
tree9e7f7e90e5b487133bd139f3b2e10e7b35ada96a
parentb7337b9ec85630eba61bb2db3a44dd64e4e3b639 (diff)
downloadguix-c71c92b97a09cfbcdbbf733e5b16c35b786b0513.tar.gz
gnu: rust-xdg-2: Update to 2.5.0.
* gnu/packages/crates-io.scm (rust-xdg-2): Update to 2.5.0.
[arguments]: Add a phase to help the test suite.
[cargo-inputs]: Add rust-home-0.5, rust-serde-1. Remove rust-dirs-4.
-rw-r--r--gnu/packages/crates-io.scm14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0ab2484794..1ae2193ccc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -76294,16 +76294,24 @@ extended attributes.")
 (define-public rust-xdg-2
   (package
     (name "rust-xdg")
-    (version "2.4.1")
+    (version "2.5.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "xdg" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1xl81zfx5fsc5n06h77s0fvrslzhh2piabfz0c1lqk5xbkdq6i8c"))))
+        (base32 "1vkzfsy3n85qnn1076h9111jg3h7k9r99jqi8nnrq3kmbbdrg1b8"))))
     (build-system cargo-build-system)
-    (arguments `(#:cargo-inputs (("rust-dirs" ,rust-dirs-4))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-home" ,rust-home-0.5)
+        ("rust-serde" ,rust-serde-1))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'pre-check
+           (lambda _
+             (setenv "HOME" (getcwd)))))))
     (home-page "https://github.com/whitequark/rust-xdg")
     (synopsis "Store and retrieve files according to XDG specification")
     (description