gnu: Add rust-clipboard-win-5.

* gnu/packages/crates-windows.scm (rust-clipboard-win-5): New variable.
(rust-clipboard-win-4): Inherit from rust-clipboard-win-5.

Change-Id: I9fea7093eb007f33fead73cb425072237065502c
This commit is contained in:
Efraim Flashner 2024-03-14 12:33:49 +02:00
parent eab9fdef8f
commit 1c9089b9c3
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -138,8 +138,31 @@ (define-public rust-cargo-credential-wincred-0.3
(("rust-cargo-credential" ,rust-cargo-credential-0.3)
("rust-windows-sys" ,rust-windows-sys-0.48))))))
(define-public rust-clipboard-win-5
(package
(name "rust-clipboard-win")
(version "5.2.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "clipboard-win" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "15x28184cw6r8hx30farqvcir0kz151dfbfms4avl9q11rqa1y8j"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; unresolved import `clipboard_win::raw`
#:cargo-inputs (("rust-error-code" ,rust-error-code-3)
("rust-windows-win" ,rust-windows-win-3))))
(home-page "https://github.com/DoumanAsh/clipboard-win")
(synopsis "Simple way to interact with Windows clipboard")
(description
"This package provides simple way to interact with Windows clipboard.")
(license license:boost1.0)))
(define-public rust-clipboard-win-4
(package
(inherit rust-clipboard-win-5)
(name "rust-clipboard-win")
(version "4.5.0")
(source
@ -149,18 +172,12 @@ (define-public rust-clipboard-win-4
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0qh3rypkf1lazniq4nr04hxsck0d55rigb5sjvpvgnap4dyc54bi"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; unresolved import `clipboard_win::raw`
#:cargo-inputs
(("rust-error-code" ,rust-error-code-2)
("rust-str-buf" ,rust-str-buf-1)
("rust-winapi" ,rust-winapi-0.3))))
(home-page "https://github.com/DoumanAsh/clipboard-win")
(synopsis "Simple way to interact with Windows clipboard")
(description
"This package provides simple way to interact with Windows clipboard.")
(license license:boost1.0)))
("rust-winapi" ,rust-winapi-0.3))))))
(define-public rust-clipboard-win-3
(package