From 557d66ba3c0c253e26d3f1039a081e630bfcef83 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 17 Dec 2021 23:03:58 +0100 Subject: [PATCH] gnu: Add rust-trash-2. * gnu/packages/crates-io.scm (rust-trash-2): New variable. (rust-trash-1): Inherit from above. --- gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 327c8ea177..1e22722b82 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -58861,8 +58861,39 @@ (define-public rust-traitobject-0.1 (license (list license:asl2.0 license:expat)))) +(define-public rust-trash-2 + (package + (name "rust-trash") + (version "2.0.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "trash" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1g3wjnr5qvgvvi144mlgf0mh80dybmy9zv2xyswpm55p5p5vdsyk")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-chrono" ,rust-chrono-0.4) + ("rust-libc" ,rust-libc-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-objc" ,rust-objc-0.2) + ("rust-scopeguard" ,rust-scopeguard-1) + ("rust-url" ,rust-url-2) + ("rust-windows" ,rust-windows-0.9) + ("rust-windows" ,rust-windows-0.9)))) + (home-page "https://github.com/ArturKovacs/trash-rs") + (synopsis "Library for moving files and folders to the recycle bin") + (description + "This package provides a library for moving files and folders to the +recycle bin.") + (license license:expat))) + (define-public rust-trash-1 (package + (inherit rust-trash-2) (name "rust-trash") (version "1.3.0") (source @@ -58872,17 +58903,10 @@ (define-public rust-trash-1 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "04nmmh6pnlsdpgz24bwnjpyqcs66414w1sip9whlx0aln6prdpwh")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs - (("rust-winapi" ,rust-winapi-0.3)))) - (home-page "https://github.com/ArturKovacs/trash-rs") - (synopsis "Library for moving files and folders to the recycle bin") - (description - "This package provides a library for moving files and folders to the -recycle bin.") - (license license:expat))) + (("rust-winapi" ,rust-winapi-0.3)))))) (define-public rust-tree-magic-0.2 (package