aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-04 14:16:15 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-12 11:57:33 +0300
commitc9093d27949626e61db9591d37cebc693d15ca5b (patch)
tree0a025a7ada404eda4377848540f03a1e3e686318 /gnu
parent07631e31b1b03cbf2797b8462eaa592c6b0699e2 (diff)
downloadpatches-c9093d27949626e61db9591d37cebc693d15ca5b.tar
patches-c9093d27949626e61db9591d37cebc693d15ca5b.tar.gz
gnu: Add rust-winapi.
* gnu/packages/crates-io.scm (rust-winapi): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 23592f839b..6500adb215 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -883,6 +883,32 @@ whitespace from a string.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-winapi
+ (package
+ (name "rust-winapi")
+ (version "0.3.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winapi" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0w7pbhcl087lkggxdflfp2i92rq89ahsfdkjkv44fgmiy9m3h3pi"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-winapi-i686-pc-windows-gnu"
+ ,rust-winapi-i686-pc-windows-gnu)
+ ("rust-winapi-x86-64-pc-windows-gnu"
+ ,rust-winapi-x86-64-pc-windows-gnu))))
+ (home-page "https://github.com/retep998/winapi-rs")
+ (synopsis "Raw FFI bindings for all of Windows API.")
+ (description
+ "Raw FFI bindings for all of Windows API.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-winapi-i686-pc-windows-gnu
(package
(name "rust-winapi-i686-pc-windows-gnu")