diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2019-08-28 16:03:59 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-08-28 16:53:05 +0300 |
commit | 018c29894850acba58451f2bec035db79f5fc78e (patch) | |
tree | bb57dad088af42216f92970504c43ecee756ab11 /gnu/packages | |
parent | a567cde9b19bb0b1f82c4a0cb51e92c65fb4c837 (diff) | |
download | guix-018c29894850acba58451f2bec035db79f5fc78e.tar.gz |
gnu: Add rust-net2.
* gnu/packages/crates-io.scm (rust-net2): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index becdd811a3..beec57a253 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -718,6 +718,32 @@ whether an expression matches a pattern.") "Chaining APIs for both self -> Self and &mut self methods.") (license license:expat))) +(define-public rust-net2 + (package + (name "rust-net2") + (version "0.2.33") + (source + (origin + (method url-fetch) + (uri (crate-uri "net2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "126g3fgfxp06zimc1l9iyxnn9cif1hjsg7sd81nlls5nnyghsma2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if) + ("rust-libc" ,rust-libc) + ("rust-winapi" ,rust-winapi)))) + (home-page "https://github.com/rust-lang-nursery/net2-rs") + (synopsis "Extensions to the standard library's networking types") + (description + "This library contains extensions to the standard library's networking +types as proposed in RFC 1158.") + (license (list license:asl2.0 + license:expat)))) + (define-public rust-num-integer (package (name "rust-num-integer") |