From 4262f51b64655c0d657dee5d2bd4df81baf31389 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 10 Feb 2021 17:21:34 +0100 Subject: [PATCH] gnu: Add rust-filesize-0.2. * gnu/packages/crates-io.scm (rust-filesize-0.2): New variable. --- gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 @@ (define-public rust-fern-0.5 (("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")