aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2020-02-02 03:44:17 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-02-27 20:59:53 +0200
commitd082ffe2c312f511ab1f77ad68374b725c1b194a (patch)
treecd5e3293aa43d30141cb865a1da71d44bb033b93 /gnu/packages
parent7cb8191cce7b3b38fc75efa44c38417ab6853ea3 (diff)
downloadpatches-d082ffe2c312f511ab1f77ad68374b725c1b194a.tar
patches-d082ffe2c312f511ab1f77ad68374b725c1b194a.tar.gz
gnu: Add rust-http-req-0.5.
* gnu/packages/crates-io.scm (rust-http-req-0.5): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bcee89b2b2..3352bfa4a2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7320,6 +7320,33 @@ compile time.")
requests and responses.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-http-req-0.5
+ (package
+ (name "rust-http-req")
+ (version "0.5.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "http_req" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0qaw43nwvvxbnqddxhb9fh9316dn64nmkzj08pq8n49qdy51xrys"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ ;; Haven't packaged rustls and webpki because of license
+ (("rust-native-tls" ,rust-native-tls-0.2)
+ ("rust-unicase" ,rust-unicase-2.4))))
+ (home-page "https://github.com/jayjamesjay/http_req")
+ (synopsis
+ "HTTP client with built-in HTTPS support")
+ (description
+ "Simple and lightweight HTTP client with built-in HTTPS support.")
+ (license license:expat)))
+
(define-public rust-httparse-1.3
(package
(name "rust-httparse")