From patchwork Mon Aug 5 10:44:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Goryachev X-Patchwork-Id: 66769 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AAEF727BBEE; Mon, 5 Aug 2024 11:48:00 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0A3AE27BBE9 for ; Mon, 5 Aug 2024 11:48:00 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1savEr-0001FD-Mu; Mon, 05 Aug 2024 06:46:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1savEk-0001AD-PZ for guix-patches@gnu.org; Mon, 05 Aug 2024 06:46:46 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1savEk-0000UV-Ge for guix-patches@gnu.org; Mon, 05 Aug 2024 06:46:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=PYXul/dP0BzUmTNDYfeZ2OIqrk0KVByRW4vH3dhzwX8=; b=nwU83Eew3Jx2xRORC1ONFHMdhUEfixtNGPRt1aXym/XB51OnARKnIARTmxHzK8OjWmpYesHMAhuXWYng6SxgPI4MCtofm7elCm98X7gej+za93FlCujvKCH/Y2ogmkQLCvjCOaDTI7y5FD6+FxOu4YpAQaKDsjKM4jEqI0brqdFkTTKVJi8om54S9gqyXoM2C4j6a4UOMzSHLjvS2jjSAYttj0GMwavb1KeJk9B1Unzl37/W8a1f3tvdozpx3/dhu3SZGxlFof5aGQ60P4uAOKWkYxvZ5/JPWxPP/V2N7xLjDwIyIkXS5j7rIK9usjQF2jjTiF69Tp5kKNnCFXO0og==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1savF6-0000Hu-O4 for guix-patches@gnu.org; Mon, 05 Aug 2024 06:47:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72474] [PATCH 17/30] gnu: Add erlang-fast-tls. Resent-From: Igor Goryachev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Aug 2024 10:47:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72474 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72474@debbugs.gnu.org Cc: Igor Goryachev , Andrew Tropin Received: via spool by 72474-submit@debbugs.gnu.org id=B72474.1722854795807 (code B ref 72474); Mon, 05 Aug 2024 10:47:08 +0000 Received: (at 72474) by debbugs.gnu.org; 5 Aug 2024 10:46:35 +0000 Received: from localhost ([127.0.0.1]:58041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1savEZ-0000Ct-3r for submit@debbugs.gnu.org; Mon, 05 Aug 2024 06:46:35 -0400 Received: from mail.goryachev.org ([178.62.244.128]:39152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1savEQ-0000Ah-00 for 72474@debbugs.gnu.org; Mon, 05 Aug 2024 06:46:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=wY1NJuGH7WtBcG0 LHk2pJPxDlXHLNe+SrcXqMoC1QN0=; h=references:in-reply-to:date:subject: cc:to:from; d=goryachev.org; b=qcnxI95yr7pDtYFWvG7YgG/cpXoI4K8KLFYdLki +vroWO2MX1gcnNCipcVhhgVhVDeSf+Dh+g+WD37TKf94R2pToy36POju7rTGo9hkaQ4hW0 H0aHKGjQjFAYj4M3wtHZTSl4jpohpOhh+ROXUiJ2iCLU9f4ouqP9Z7VgeG1yJ4= Received: by mail.goryachev.org (OpenSMTPD) with ESMTPSA id a799b84d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 5 Aug 2024 10:45:56 +0000 (UTC) Date: Mon, 5 Aug 2024 13:44:50 +0300 Message-ID: <7c02752ce7713dfd8d625b0fbbb4b812028aa670.1722851684.git.igor@goryachev.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Igor Goryachev X-ACL-Warn: , Igor Goryachev via Guix-patches X-Patchwork-Original-From: Igor Goryachev via Guix-patches via From: Igor Goryachev Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/erlang-xyz.scm (erlang-fast-tls): New variable. Change-Id: Ibda856e308b68f5e1dba4a7a541e0f2438aae737 --- gnu/packages/erlang-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm index 58b503b49c..2d0d8cd567 100644 --- a/gnu/packages/erlang-xyz.scm +++ b/gnu/packages/erlang-xyz.scm @@ -20,6 +20,7 @@ (define-module (gnu packages erlang-xyz) #:use-module (gnu packages) #:use-module (gnu packages erlang) #:use-module (gnu packages python) + #:use-module (gnu packages tls) #:use-module (guix build-system rebar) #:use-module (guix download) #:use-module (guix gexp) @@ -268,6 +269,46 @@ (define-public erlang-ezlib (home-page "https://hex.pm/packages/ezlib") (license license:asl2.0))) +(define-public erlang-fast-tls + (package + (name "erlang-fast-tls") + (version "1.1.21") + (source + (origin + (method url-fetch) + (uri (hexpm-uri "fast_tls" version)) + (sha256 + (base32 "0nsh5597pa1643kj2mmp05anss2r0gq83al0rm45w0ip768l458k")))) + (build-system rebar-build-system) + (inputs (list erlang-p1-utils openssl)) + (native-inputs (list erlang-pc openssl)) + (arguments + (list + #:tests? #f ; some required files are absent + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-/bin/sh + (lambda* (#:key inputs #:allow-other-keys) + (let ((sh (search-input-file inputs "/bin/sh"))) + (substitute* "configure" + (("/bin/sh") sh))))) + (add-after 'unpack 'set-environment + (lambda _ + (setenv "HOME" "/tmp") + (setenv "CC" "gcc") + (let ((openssl (assoc-ref %build-inputs "openssl"))) + (setenv "LDFLAGS" (string-append "-L" openssl "/lib")) + (setenv "CFLAGS" (string-append "-I" openssl "/include"))))) + (add-before 'build 'configure + (lambda _ + (invoke "./configure")))))) + (synopsis "TLS/SSL OpenSSL-based native driver for Erlang/Elixir") + (description + "This package provides TLS/SSL @code{OpenSSL}-based native driver +for Erlang/Elixir.") + (home-page "https://hex.pm/packages/fast_tls") + (license license:asl2.0))) + (define-public erlang-unicode-util-compat (package (name "erlang-unicode-util-compat")