From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 1/2] gnu: Add mbedtls. Date: Thu, 26 Jan 2017 15:40:37 +0000 Message-ID: <20170126154037.19603-2-contact.ng0@cryptolab.net> References: <8737g527yb.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <20170126154037.19603-1-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWm9J-0007EG-IM for guix-devel@gnu.org; Thu, 26 Jan 2017 10:39:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWm9H-0006Gz-7c for guix-devel@gnu.org; Thu, 26 Jan 2017 10:39:45 -0500 Received: from aibo.runbox.com ([91.220.196.211]:57966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWm9G-0006Gd-WC for guix-devel@gnu.org; Thu, 26 Jan 2017 10:39:43 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cWm9F-0001pi-ON for guix-devel@gnu.org; Thu, 26 Jan 2017 16:39:41 +0100 In-Reply-To: <20170126154037.19603-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 Cc: ng0 From: ng0 * gnu/packages/tls.scm (mbedtls): New variable. --- gnu/packages/tls.scm | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 1198eb7d0..4da442a1d 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015, 2016 Leo Famulari ;;; Copyright © 2015, 2016, 2017 Leo Famulari ;;; Copyright © 2016 Efraim Flashner -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2017 ng0 ;;; Copyright © 2016 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. @@ -33,6 +33,7 @@ #: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) #:use-module (gnu packages guile) @@ -769,3 +770,29 @@ 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.0") + (source + (origin + (method url-fetch) + ;; XXX: The download links on the website are script redirection links + ;; which effectively lead to the format listed in the uri here. + (uri (string-append "https://tls.mbed.org/download/mbedtls-" + version "-apache.tgz")) + (sha256 + (base32 + "03bzbfidigljva6xj49k38q3kwlbj75lrky4a0ainylzsfg5bhy1")))) + (build-system cmake-build-system) + (native-inputs + `(("perl" ,perl))) + (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