[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40874] [PATCH 93/94] gnu: Add rust-nettle-7.
From: |
Hartmut Goebel |
Subject: |
[bug#40874] [PATCH 93/94] gnu: Add rust-nettle-7. |
Date: |
Sun, 26 Apr 2020 18:46:12 +0200 |
* gnu/packages/crates-io.scm (rust-nettle-7): New variable.
---
gnu/packages/crates-io.scm | 44 ++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cbb8290380..4c3b21f037 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37,6 +37,7 @@
#:use-module (gnu packages gtk)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages llvm)
+ #:use-module (gnu packages multiprecision)
#:use-module (gnu packages nettle)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
@@ -11943,6 +11944,49 @@ types as proposed in RFC 1158.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-nettle-7
+ (package
+ (name "rust-nettle")
+ (version "7.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "nettle" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1n6dwy9zba8853bmxzhwaashd3np0wxpx0pj43brm0hb8n2sxbxi"))))
+ (build-system cargo-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("clang" ,clang)
+ ("gmp" ,gmp)
+ ("nettle" ,nettle)))
+ (arguments
+ `(#:skip-build? #t ;; provides nothing, has no tests
+ #:cargo-inputs
+ (("rust-getrandom" ,rust-getrandom-0.1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-nettle-sys" ,rust-nettle-sys-2)
+ ("rust-nettle-src" ,rust-nettle-src)
+ ("rust-thiserror" ,rust-thiserror-1.0))
+ #:cargo-development-inputs
+ (("rust-bindgen" ,rust-bindgen-0.51)
+ ("rust-pkg-config" ,rust-pkg-config-0.3))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-missing-env-vars
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; FIXME: why do we need to set this?
+ (setenv "LIBCLANG_PATH"
+ (string-append (assoc-ref inputs "clang") "/lib"))
+ #t)))))
+ (home-page "https://gitlab.com/sequoia-pgp/nettle-rs")
+ (synopsis "Rust bindings for the Nettle cryptographic library")
+ (description "This package provides Rust bindings for the Nettle
+cryptographic library.")
+ (license (list license:lgpl3 license:gpl2 license:gpl3))))
+
(define-public rust-nettle-src
(package
(name "rust-nettle-src")
--
2.21.3
- [bug#40874] [PATCH 85/94] gnu: Add rust-webpki-0.18., (continued)
- [bug#40874] [PATCH 85/94] gnu: Add rust-webpki-0.18., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 91/94] gnu: Add nettle-src., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 90/94] gnu: Add rust-zbase32-0.1., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 87/94] gnu: Add rust-webpki-roots-0.17., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 83/94] gnu: Add rust-want-0.2., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 86/94] gnu: Add rust-webpki-roots-0.18., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 89/94] gnu: Add rust-which-3., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 88/94] gnu: Add rust-webpki-roots-0.14., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 80/94] gnu: Add rust-tokio-rustls-0.12., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 92/94] gnu: Add rust-nettle-sys-2., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 93/94] gnu: Add rust-nettle-7.,
Hartmut Goebel <=
- [bug#40874] [PATCH 94/94] gnu: Add sequoia., Hartmut Goebel, 2020/04/26
- [bug#40874] [PATCH 00/94] Add sequoia pgp, rust-nettle, and 90 rust package., Ludovic Courtès, 2020/04/30