From patchwork Mon Aug 5 10:44:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Goryachev X-Patchwork-Id: 66774 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 4BE3327BBEC; Mon, 5 Aug 2024 11:48:08 +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=unavailable 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 23A8927BBE2 for ; Mon, 5 Aug 2024 11:48:06 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1savEr-0001FT-Qm; 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 1savEl-0001AU-Px for guix-patches@gnu.org; Mon, 05 Aug 2024 06:46:48 -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 1savEl-0000Uk-Gi for guix-patches@gnu.org; Mon, 05 Aug 2024 06:46:47 -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=W9AX/sKciPLTQyr+rssmNWd9svPcxE+LxA+8rkyN15w=; b=JLPLP2NXxqzAwm21NIXoIQGgR7INi3v5+AfOBJ5D9cs+twCZj6zrrvoeOe2CXBKgyohf3uLshMX1LNbaMh4e3qKhUWFw7kvZyE+2rLplQAmcwX4WP6AdiqtFuk1mAdFsHypryUon8oadEVc3FzCCDXA/t5hhRppC4iSL0E4S1R+zzkm2SvuOs8monGpWGDpkFBenL882j399gr91Du0Pza5vj7blklgUC3+DczgTue72qvsWa9onoWtlzR8fadXjkjZ5+2u6zTVOUVNdUoQU1YxZ9oA5lKLIg2lmkKxXb6xENLXcsaxnDV8VCXwMSH88hzSfGtRZcXM8ZYXZaz7v7w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1savF7-0000IA-Ns for guix-patches@gnu.org; Mon, 05 Aug 2024 06:47:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72474] [PATCH 20/30] gnu: Add erlang-fast-yaml. Resent-From: Igor Goryachev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Aug 2024 10:47:09 +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.1722854796828 (code B ref 72474); Mon, 05 Aug 2024 10:47:09 +0000 Received: (at 72474) by debbugs.gnu.org; 5 Aug 2024 10:46:36 +0000 Received: from localhost ([127.0.0.1]:58045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1savEZ-0000D7-Tq for submit@debbugs.gnu.org; Mon, 05 Aug 2024 06:46:36 -0400 Received: from mail.goryachev.org ([178.62.244.128]:39152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1savER-0000Ah-S7 for 72474@debbugs.gnu.org; Mon, 05 Aug 2024 06:46:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=saUpBs3s4W92t4Z VIv2+6MhIw0IFE2Sn44hWhwPVXNE=; h=references:in-reply-to:date:subject: cc:to:from; d=goryachev.org; b=GPB5+r94EgP5cnR2C+rAvbJoi0zFXlLoy99nLcz Hy1RRBMXrMW7XKZcsgDMKMyDG7h/iD5lHAqzJjFS6nhR4OEEqSYLBBt9Tc3E8UHs+mjC04 /oRQxG2Ea0MGhS4HSYqjPOOwe7RdHfCGGWpTsa4COO6zJo3MmArUtlWY6KlX2M= Received: by mail.goryachev.org (OpenSMTPD) with ESMTPSA id 3c4500ff (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 5 Aug 2024 10:45:58 +0000 (UTC) Date: Mon, 5 Aug 2024 13:44:53 +0300 Message-ID: <04bee75dbd935a8621eacd66e5ce1b99e4e04565.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-yaml): New variable. Change-Id: I81cb9dab74a81af9f6a901fa2674ac9f77318cd4 --- gnu/packages/erlang-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm index f0d62e1679..7d03590639 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 serialization) #:use-module (gnu packages tls) #:use-module (guix build-system rebar) #:use-module (guix download) @@ -353,6 +354,36 @@ (define-public erlang-fast-xml (home-page "https://hex.pm/packages/fast_xml") (license license:asl2.0))) +(define-public erlang-fast-yaml + (package + (name "erlang-fast-yaml") + (version "1.0.37") + (source + (origin + (method url-fetch) + (uri (hexpm-uri "fast_yaml" version)) + (sha256 + (base32 "0sd72nal5i6mbmicsmb494mr4g0gvs719lzp2hj1gqpp3dr6is4d")))) + (build-system rebar-build-system) + (inputs (list erlang-p1-utils)) + (native-inputs (list erlang-pc libyaml)) + (arguments + (list + #:tests? #f ; some required files are absent + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-environment + (lambda _ + (setenv "HOME" "/tmp") + (setenv "CC" "gcc") + (let ((openssl (assoc-ref %build-inputs "libyaml"))) + (setenv "LDFLAGS" (string-append "-L" openssl "/lib")) + (setenv "CFLAGS" (string-append "-I" openssl "/include")))))))) + (synopsis "Fast YAML native library for Erlang/Elixir") + (description "This package provides fast YAML native library for Erlang/Elixir.") + (home-page "https://hex.pm/packages/fast_yaml") + (license license:asl2.0))) + (define-public erlang-unicode-util-compat (package (name "erlang-unicode-util-compat")