Actually it is 1/2 because this is a requirement for hiawatha webserver, but I checked the bin/hello of mbedtls and it worked. I'm positive this is functional without the need for a PoC application which depends on it.
contact....@cryptolab.net writes: > From: ng0 <n...@libertad.pw> > > * gnu/packages/tls.scm (mbedtls): New variable. > --- > gnu/packages/tls.scm | 36 +++++++++++++++++++++++++++++++++++- > 1 file changed, 35 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm > index 1198eb7d0..aa6837f78 100644 > --- a/gnu/packages/tls.scm > +++ b/gnu/packages/tls.scm > @@ -7,7 +7,7 @@ > ;;; Copyright © 2015, 2016 Leo Famulari <l...@famulari.name> > ;;; Copyright © 2015, 2016, 2017 Leo Famulari <l...@famulari.name> > ;;; Copyright © 2016 Efraim Flashner <efr...@flashner.co.il> > -;;; Copyright © 2016 ng0 <n...@we.make.ritual.n0.is> > +;;; Copyright © 2016, 2017 ng0 <contact....@cryptolab.net> > ;;; Copyright © 2016 Hartmut Goebel <h.goe...@crazy-compilers.com> > ;;; > ;;; This file is part of GNU Guix. > @@ -33,9 +33,12 @@ > #:use-module (guix build-system gnu) > #:use-module (guix build-system perl) > #:use-module (guix build-system python) > + #:use-module (guix build-system cmake) > #:use-module (gnu packages compression) > + #:use-module (gnu packages documentation) > #:use-module (gnu packages) > #:use-module (gnu packages guile) > + #:use-module (gnu packages graphviz) > #:use-module (gnu packages libbsd) > #:use-module (gnu packages libffi) > #:use-module (gnu packages libidn) > @@ -769,3 +772,34 @@ then ported to the GNU / Linux environment.") > ;; acme-client is distributed under the ISC license, but the files > 'jsmn.h' > ;; and 'jsmn.c' are distributed under the Expat license. > (license (list license:isc license:expat)))) > + > +(define-public mbedtls > + (package > + (name "mbedtls") > + (version "2.4.1") > + (source > + (origin > + (method url-fetch) > + ;; FIXME: Tarball on tls.mbed.org can no be fetched by our downloader. > + (uri (string-append "https://github.com/ARMmbed/mbedtls/archive" > + "/mbedtls-" version ".tar.gz")) > + (file-name (string-append name "-" version ".tgz")) > + (sha256 > + (base32 > + "1jzl99vkrddyjb1ldxygnql1hlxx846drvqpiwf6nhphw5czx18c")))) > + (build-system cmake-build-system) > + (native-inputs > + `(("perl" ,perl) ; Tests > + ("doxygen" ,doxygen) > + ("graphviz" ,graphviz))) > + (inputs > + `(("zlib" ,zlib) > + ("openssl" ,openssl))) > + (synopsis "Small TLS library") > + (description > + "@code{mbed TLS}, formerly known as PolarSSL, makes it trivially easy > +for developers to include cryptographic and SSL/TLS capabilities in their > +(embedded) products, facilitating this functionality with a minimal > +coding footprint.") > + (home-page "https://tls.mbed.org") > + (license license:asl2.0))) > -- > 2.11.0 > > -- ♥Ⓐ ng0 -- https://www.inventati.org/patternsinthechaos/