From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QA75EuCtsGZ2CwEA62LTzQ:P1 (envelope-from ) for ; Mon, 05 Aug 2024 10:48:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QA75EuCtsGZ2CwEA62LTzQ (envelope-from ) for ; Mon, 05 Aug 2024 12:48:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=nwU83Eew; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b=qcnxI95y; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722854880; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PYXul/dP0BzUmTNDYfeZ2OIqrk0KVByRW4vH3dhzwX8=; b=TEE8UvdFGuq9G/Ty+MC5H5WToBpL+zIZk+1sT/IyQaXKHPiV8i2plMt6u2TFKLWdKIVVxo TT2eHDkRtzV77AsAYnQ6+IZ0vybOHBE6Zt+IG40qCciEufhwUEFniwXZ0M3GTrfhUYwMy6 pnL/6AWJEEX8VYjMeKxKkrPc6XqZEOaqD5QwQ2EDnl+soO726Q/2W8QH436y07TqevEVDc /Bf1BIG5BXRzDk0CfzAC/1I+tE4g8HwnVvsBnLBqkytxSHNKwMq0NdW7R7vnur/0bSQKX/ 9NkDc7bmz+o5kQZTeeknAfxOZXQ3vEkKl7fYKO2P0XECvFCrUEoN5UQVi3QQVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722854880; a=rsa-sha256; cv=none; b=MINh79j1cFvQj4QrtvrmbzbKQgsGOPp1po+LXwB1VhWzg0bvOqe75M5EYZ85/G+CeX6hhI bBhLr/NrPPyehZTNJF9+pjZB9fLhBrV/jRMXl/EzVlvv+ENi3fQotdLvGFvnOFufFLm9ZM WfQWl9DlP1U5nwOhP8Gdk6m4DAk2GpPrFMUnBn2ZVojncPhmzi8oydv1vgq/ZHZv+we9Ym 0muTCN2IYdLwEwcPVuTC88S/l7fh6FG3XrugUhFoyyi8z1gomRWhXQVDUh7+giz6y3yqNk Fnlnb/BwYf5P8APyvR3dK+VwFLx7SoVjGkjwMQmlzOd8w9XqCCvMoGz4Jy1I5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=nwU83Eew; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b=qcnxI95y; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 294581ECD5 for ; Mon, 5 Aug 2024 12:48:00 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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 From: Igor Goryachev via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 294581ECD5 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.44 X-Spam-Score: -6.44 X-TUID: F8k9kHp44ATA * 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") -- 2.45.2