* gnu/packages/rust.scm (rust-tempfile): New variable. --- gnu/packages/rust.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 51c603dab..b9e93c2d4 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1885,3 +1885,28 @@ and serializing Rust structures.") "Rustc-version provides a library for querying the version of a installed rustc compiler.") (license (list license:expat license:asl2.0)))) + +(define-public rust-tempfile + (package + (name "rust-tempfile") + (version "2.1.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "tempfile" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1j7h9xcxvzap9xpiy8w6mw9hb5iwddw7xrlgq7db3ldsjdx86w4j")))) + (build-system cargo-build-system) + (native-inputs + `(("rust-rustc-version" ,rust-rustc-version "src"))) + (inputs + `(("rust-libc" ,rust-libc "src") + ("rust-rand" ,rust-rand "src"))) + (home-page "http://stebalien.com/projects/tempfile-rs";) + (synopsis "Securely create temporary files") + (description + "Tempfile allows you to securely create temporary files.") + (license (list license:expat license:asl2.0)))) -- 2.11.0