From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH 1/2] gnu: Add mbedtls. Date: Wed, 25 Jan 2017 12:29:58 +0000 Message-ID: <87pojbl3uh.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20170125122517.2266-1-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWMiG-0006Mt-HB for guix-devel@gnu.org; Wed, 25 Jan 2017 07:30:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWMiD-00083C-9y for guix-devel@gnu.org; Wed, 25 Jan 2017 07:30:08 -0500 Received: from perdizione.investici.org ([94.23.50.208]:56591) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWMiC-000832-Vm for guix-devel@gnu.org; Wed, 25 Jan 2017 07:30:05 -0500 Received: from [94.23.50.208] (perdizione [94.23.50.208]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id 1C696120433 for ; Wed, 25 Jan 2017 12:30:03 +0000 (UTC) In-Reply-To: <20170125122517.2266-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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.ng0@cryptolab.net writes: > From: ng0 > > * 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 =C2=A9 2015, 2016 Leo Famulari > ;;; Copyright =C2=A9 2015, 2016, 2017 Leo Famulari > ;;; Copyright =C2=A9 2016 Efraim Flashner > -;;; Copyright =C2=A9 2016 ng0 > +;;; Copyright =C2=A9 2016, 2017 ng0 > ;;; Copyright =C2=A9 2016 Hartmut Goebel > ;;; > ;;; 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 down= loader. > + (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 th= eir > +(embedded) products, facilitating this functionality with a minimal > +coding footprint.") > + (home-page "https://tls.mbed.org") > + (license license:asl2.0))) > --=20 > 2.11.0 > > --=20 =E2=99=A5=E2=92=B6 ng0 -- https://www.inventati.org/patternsinthechaos/