summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-10 17:21:34 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-13 11:50:32 +0100
commit4262f51b64655c0d657dee5d2bd4df81baf31389 (patch)
treec084ba74900133a0e398905dc2c4900c7a7702fd
parent084144ac50a133c27e411510388f6629a2cb0eac (diff)
downloadguix-4262f51b64655c0d657dee5d2bd4df81baf31389.tar.gz
gnu: Add rust-filesize-0.2.
* gnu/packages/crates-io.scm (rust-filesize-0.2): New variable.
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3c21ccbcee..51d16795e2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13063,6 +13063,30 @@ supported in purely NFA-based implementations.")
        (("rust-clap" ,rust-clap-2)
         ("rust-tempdir" ,rust-tempdir-0.3))))))
 
+(define-public rust-filesize-0.2
+  (package
+    (name "rust-filesize")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "filesize" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hvx4dfnara3a2dnhb9ci5bmm1m8s44h9l61s5djwkjx87i43mqj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "https://github.com/Freaky/rust-filesize")
+    (synopsis "Find the physical space used by a file")
+    (description
+     "@code{filesize} abstracts platform-specific methods of determining the
+real space used by files, taking into account filesystem compression and
+sparse files.")
+    (license license:expat)))
+
 (define-public rust-filetime-0.2
   (package
     (name "rust-filetime")