Subject: [bug#74432] [rust-team 7/9] gnu: crates-io: Add rust-filename

From: Divya Ranjan <[email-masked]>
Date: Tue, 19 Nov 2024 07:32:15 +0000

* gnu/packages/crates-io.scm (rust-filename): New variable

Change-Id: Iab7def60b569282c46ef5fdc50e265a3e2b8eeea
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 37bef67027..f40a8da4d5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27424,6 +27424,28 @@ (define-public rust-filedescriptor-0.8
      "More ergonomic wrappers around @code{RawFd} and @code{RawHandle}.")
     (license license:expat)))
 
+(define-public rust-filename-0.1
+  (package
+    (name "rust-filename")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "filename" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1s7byy8c939qrm6hsjqq0vicfv6rkxb3yrhslg7zkggyxw1xzr33"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/flier/rust-filename")
+    (synopsis "Get filename from a raw file descriptor")
+    (description
+     "This package provides Get filename from a raw file descriptor.")
+    (license license:expat)))
+
 (define-public rust-filesize-0.2
   (package
     (name "rust-filesize")
-- 
2.46.0