aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-29 13:53:48 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-29 15:05:24 +0300
commitc5af2ecfb85a13ae6c39f911f456ff320c2818e5 (patch)
tree9421e71de373dc39d6bcc85e342ecd406615574c
parent3c9b315aaa266bb21ee10968a99470de19b704af (diff)
downloadguix-c5af2ecfb85a13ae6c39f911f456ff320c2818e5.tar
guix-c5af2ecfb85a13ae6c39f911f456ff320c2818e5.tar.gz
gnu: Add rust-ws2-32-sys.
* gnu/packages/cargo-io.scm (rust-ws2-32-sys): New variable.
-rw-r--r--gnu/packages/crates-io.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5aad52e21..39b976bc53 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2456,6 +2456,36 @@ color in a Windows console.")
"A simple library wrapping a handful of useful winapi functions.")
(license license:expat)))
+(define-public rust-ws2-32-sys
+ (package
+ (name "rust-ws2-32-sys")
+ (version "0.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "ws2_32-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0ppscg5qfqaw0gzwv2a4nhn5bn01ff9iwn6ysqnzm4n8s3myz76m"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-winapi" ,rust-winapi-0.2)
+ ("rust-winapi-build" ,rust-winapi-build))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-Cargo-toml
+ (lambda _
+ (substitute* "Cargo.toml"
+ ((", path =.* }") "}\n"))
+ #t)))))
+ (home-page "https://github.com/retep998/winapi-rs")
+ (synopsis "Function definitions for the Windows API library ws2_32")
+ (description
+ "Contains function definitions for the Windows API library ws2_32.")
+ (license license:expat)))
+
(define-public rust-xdg
(package
(name "rust-xdg")