From patchwork Wed Nov 8 09:22:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 56094 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 5390127BBE9; Wed, 8 Nov 2023 09:27:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 9B10E27BBEA for ; Wed, 8 Nov 2023 09:26:58 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0epN-0000gG-10; Wed, 08 Nov 2023 04:26:25 -0500 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 1r0epL-0000fd-H7 for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:23 -0500 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 1r0epL-0005hS-98 for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:23 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0epx-00031b-M1 for guix-patches@gnu.org; Wed, 08 Nov 2023 04:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH 1/5] guix: build-system: rebar: build Erlang packages with dependencies. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Nov 2023 09:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66801@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.169943557511534 (code B ref 66801); Wed, 08 Nov 2023 09:27:01 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Nov 2023 09:26:15 +0000 Received: from localhost ([127.0.0.1]:44005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epC-0002zx-0c for submit@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:14 -0500 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:56769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0ep8-0002zM-Qj for 66801@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:12 -0500 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50970c2115eso4369496e87.1 for <66801@debbugs.gnu.org>; Wed, 08 Nov 2023 01:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20230601.gappssmtp.com; s=20230601; t=1699435526; x=1700040326; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PkYogAIm7PzarS4jP9yOj87GVmsQhgaZBG6YTTv7X4M=; b=UW87H1HbFIowitEC+CWNvSQagjrDromakR00YzB2bQm5hqIyobSjQK/fEvG/J4wctI UJpoLUzCNSkx14Bku42x+6Tb5mUxv1gVWMHp1ptzz9se7xvEpDF3nJ1P/eYC4pgtxU9J nQPXRpyh8H1XGhaS9ayw1gqcw+fmYCj2Vb4vzB3tKbtWQERfVsPHHF6Uc1/4AQXq/j+6 kADWbepktVLJm1KxqILO4p3Ca+CATYlUxkKteX1otFG+II7oTH54GVc2goEsqjrILnrT s6JFr8YwVg4XfHADkZK19F5OYojSe/A3l/lQXgiWCrmfVvob7hhb4kNTMoVfLN/0whLL ek/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699435526; x=1700040326; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PkYogAIm7PzarS4jP9yOj87GVmsQhgaZBG6YTTv7X4M=; b=EEmdKpdflT1/9VBrrQpKTZty//4CLMBPJXUgfyP/JFI73dCIbvtBFokCSRNE1kVuL5 rHsswfy87w2w+sP/SHFOhSRetTcxHIrvnY84ynDjDt0y8VAW1cfays1ErNSdQJFFhgph V4b4JQxJXotacBiB31WWPhpMeJoA2RwVMcrlFiSdZM/o5CGZEaT88Q7RIetOPl5WcgDU W44o3Pme9Pd7bidDzoPmwatKEgLnqZ+mO8aPLAdlyycUD8RMMUXcfwr/0uazMmHAAY5W g58wOn8hMsQArgBMNrtjpoNM1gMnR2AkKM2fdFfcy7xskFNLvcZKOGHos1HE1FoH98ES nPgQ== X-Gm-Message-State: AOJu0YxHPtq0XCyPO0qiNo4lqGnnC8/3F8GZaa2mGKKZ5CETobl9sKFM ZwJbxvSGzc7H/EjDzFwgDtqmdvwl4t8ENIg7VLk= X-Google-Smtp-Source: AGHT+IGMtYLgKdTSPN12DdUN+CUZBOXugn3peyFUj4vZz/pWx2dXo71KIEGKhighBeOvMfN5ynRWng== X-Received: by 2002:a05:6512:e98:b0:507:9ae6:6913 with SMTP id bi24-20020a0565120e9800b005079ae66913mr1021202lfb.28.1699435525906; Wed, 08 Nov 2023 01:25:25 -0800 (PST) Received: from doug.com ([185.244.73.162]) by smtp.gmail.com with ESMTPSA id o8-20020a05600c510800b00407752f5ab6sm18841789wms.6.2023.11.08.01.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 01:25:25 -0800 (PST) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Wed, 8 Nov 2023 10:22:35 +0100 Message-ID: <18844f77e7b742e93525ee1faa48e4808bf32b01.1699434044.git.phfrohring@deeplinks.com> X-Mailer: git-send-email 2.41.0 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: , 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 Change-Id: Ie221d47fd1c9a766c2e2cdf76460ddfdf65e090d --- guix/build-system/rebar.scm | 223 ++++++++++++++++++++++-------- guix/build/rebar-build-system.scm | 43 +++--- 2 files changed, 189 insertions(+), 77 deletions(-) diff --git a/guix/build-system/rebar.scm b/guix/build-system/rebar.scm index de1294ec..cdff85a6 100644 --- a/guix/build-system/rebar.scm +++ b/guix/build-system/rebar.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Ricardo Wurmus ;;; Copyright © 2020 Hartmut Goebel +;;; Copyright © 2023 Pierre-Henry Fröhring ;;; ;;; This file is part of GNU Guix. ;;; @@ -18,20 +19,120 @@ ;;; along with GNU Guix. If not, see . (define-module (guix build-system rebar) - #:use-module (guix store) - #:use-module (guix utils) + #:use-module (guix build-system gnu) + #:use-module (guix build-system) #:use-module (guix gexp) - #:use-module (guix packages) #:use-module (guix monads) + #:use-module (guix packages) #:use-module (guix search-paths) - #:use-module (guix build-system) - #:use-module (guix build-system gnu) + #:use-module (guix store) + #:use-module (guix utils) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-26) #:export (hexpm-uri hexpm-package-url %rebar-build-system-modules rebar-build rebar-build-system)) + +;;; +;;; Utils +;;; + +(define (flatten lst) (fold append '() lst)) + + +;;; +;;; Packages +;;; + +(define %erlang-package-prefix "erlang-") + +(define (erlang-package-name? name) + "Indicates if NAME is an Erlang package name. +If a package name starts with %erlang-package-prefix, then it is an Erlang package name. +An Erlang package name must start with %erlang-package-prefix." + (string-prefix? %erlang-package-prefix name)) + +(define (hexpm-name pkg-name) + "Given a package name PKG-NAME, returns the corresponding hex.pm package name." + (let ((suffix (string-drop pkg-name (string-length %erlang-package-prefix)))) + (string-replace-substring suffix "-" "_"))) + +(define (all-transitive-inputs pkg pred) + "Given a package PKG and a predicate PRED, return all transitive inputs of PKG +that match the predicate PRED." + (delete-duplicates + (append + (filter pred (package-transitive-inputs pkg)) + (filter pred (package-transitive-native-inputs pkg)) + (filter pred (package-transitive-propagated-inputs pkg))) + input=?)) + + +;;; +;;; Input +;;; + +(define (input-mk name package) + "Build an Input." + (list name package)) + +(define (input->name input) + "Return the name of INPUT." + (car input)) + +(define (input->package input) + "Return the package of INPUT." + (cadr input)) + +(define (input=? i1 i2) + "Test whether Inputs I1 and I2 are equal." + (string=? (input->name i1) (input->name i2))) + +(define (erlang-input? input) + "Test whether INPUT is an Erlang Input." + (erlang-package-name? (input->name input))) + +(define (input->all-inputs input pred) + "Return the list of implicit satisfying PRED Inputs associated to INPUT, including INPUT." + (cons input (all-transitive-inputs (input->package input) pred))) + +(define (inputs->all-erlang-inputs erlang-inputs) + "Return a list of implicit Erlang Inputs associated to INPUT, including INPUT." + (let ((all-inputs (flatten (map (cut input->all-inputs <> erlang-package-name?) erlang-inputs)))) + (delete-duplicates all-inputs input=?))) + + +;;; +;;; Source +;;; + +(define (source-mk name origin) + "Build a source. +NAME is an hex.pm package name. +ORIGIN is an Origin." + (list name origin)) + +(define (source->name source) + "Return the name of SOURCE." + (car source)) + +(define (source->origin source) + "Return the origin of SOURCE." + (cadr source)) + +(define (source=? s1 s2) + "Test whether Sources S1 and S2 are equal." + (string=? (source->name s1) (source->name s2))) + +(define (input->source input) + "Given an Input INPUT, return its associated Source." + (source-mk (hexpm-name (input->name input)) + (package-source (input->package input)))) + + ;;; ;;; Definitions for the hex.pm repository, ;;; @@ -44,10 +145,11 @@ (define %hexpm-repo-url (define hexpm-package-url (string-append (%hexpm-repo-url) "/tarballs/")) -(define (hexpm-uri name version) +(define (hexpm-uri pkg-name version) "Return a URI string for the package hosted at hex.pm corresponding to NAME and VERSION." - (string-append hexpm-package-url name "-" version ".tar")) + (let ((name (if (erlang-package-name? pkg-name) (hexpm-name pkg-name) pkg-name))) + (string-append hexpm-package-url name "-" version ".tar"))) ;; ;; Standard build procedure for Erlang packages using Rebar. @@ -78,42 +180,50 @@ (define* (lower name #:rest arguments) "Return a bag for NAME from the given arguments." (define private-keywords - '(#:target #:rebar #:erlang #:inputs #:native-inputs)) - - (and (not target) ;XXX: no cross-compilation - (bag - (name name) - (system system) - (host-inputs `(,@(if source - `(("source" ,source)) - '()) - ,@inputs)) - (build-inputs `(("rebar" ,rebar) - ("erlang" ,erlang) ;; for escriptize - ,@native-inputs - ;; Keep the standard inputs of 'gnu-build-system'. - ,@(standard-packages))) - (outputs outputs) - (build rebar-build) - (arguments (strip-keyword-arguments private-keywords arguments))))) + '(#:target #:rebar #:erlang #:inputs #:native-inputs #:erlang-sources)) + + (let* ((inputs-all (append inputs native-inputs)) + (erlang-inputs (filter erlang-input? inputs-all)) + (all-erlang-inputs (inputs->all-erlang-inputs erlang-inputs)) + (all-erlang-sources (map input->source all-erlang-inputs))) + + (and (not target) ;XXX: no cross-compilation + (bag + (name name) + (system system) + (host-inputs `(,@(if source + `(("source" ,source)) + '()) + ,@inputs)) + (build-inputs `(("rebar" ,rebar) + ("erlang" ,erlang) ;; for escriptize + ,@inputs + ,@native-inputs + ;; Keep the standard inputs of 'gnu-build-system'. + ,@(standard-packages))) + (outputs outputs) + (build rebar-build) + (arguments (append (list #:erlang-sources all-erlang-sources) + (strip-keyword-arguments private-keywords arguments))))))) (define* (rebar-build name inputs - #:key - guile source - (rebar-flags ''("skip_deps=true" "-vv")) - (tests? #t) - (test-target "eunit") - ;; TODO: install-name ; default: based on guix package name - (install-profile "default") - (phases '(@ (guix build rebar-build-system) - %standard-phases)) - (outputs '("out")) - (search-paths '()) - (native-search-paths '()) - (system (%current-system)) - (imported-modules %rebar-build-system-modules) - (modules '((guix build rebar-build-system) - (guix build utils)))) + #:key + guile source + (rebar-flags ''("skip_deps=true" "-vv")) + (tests? #t) + (test-target "eunit") + ;; TODO: install-name ; default: based on guix package name + (install-profile "default") + (phases '(@ (guix build rebar-build-system) + %standard-phases)) + (outputs '("out")) + (search-paths '()) + (native-search-paths '()) + (erlang-sources '()) + (system (%current-system)) + (imported-modules %rebar-build-system-modules) + (modules '((guix build rebar-build-system) + (guix build utils)))) "Build SOURCE with INPUTS." (define builder @@ -123,21 +233,22 @@ (define* (rebar-build name inputs #$(with-build-variables inputs outputs #~(rebar-build #:source #+source - #:system #$system - #:name #$name - #:rebar-flags #$rebar-flags - #:tests? #$tests? - #:test-target #$test-target - ;; TODO: #:install-name #$install-name - #:install-profile #$install-profile - #:phases #$(if (pair? phases) - (sexp->gexp phases) - phases) - #:outputs %outputs - #:search-paths '#$(sexp->gexp - (map search-path-specification->sexp - search-paths)) - #:inputs %build-inputs))))) + #:system #$system + #:name #$name + #:rebar-flags #$rebar-flags + #:tests? #$tests? + #:test-target #$test-target + ;; TODO: #:install-name #$install-name + #:install-profile #$install-profile + #:phases #$(if (pair? phases) + (sexp->gexp phases) + phases) + #:outputs %outputs + #:search-paths '#$(sexp->gexp + (map search-path-specification->sexp + search-paths)) + #:inputs %build-inputs + #:erlang-sources '#$erlang-sources))))) (mlet %store-monad ((guile (package->derivation (or guile (default-guile)) system #:graft? #f))) diff --git a/guix/build/rebar-build-system.scm b/guix/build/rebar-build-system.scm index fb664228..286e4e1a 100644 --- a/guix/build/rebar-build-system.scm +++ b/guix/build/rebar-build-system.scm @@ -28,6 +28,13 @@ (define-module (guix build rebar-build-system) #:export (rebar-build %standard-phases)) +;; +;; Utils +;; + +(define sep file-name-separator-string) + + ;; ;; Builder-side code of the standard build procedure for Erlang packages using ;; rebar3. @@ -37,27 +44,20 @@ (define-module (guix build rebar-build-system) (define %erlang-libdir "/lib/erlang/lib") -(define* (erlang-depends #:key inputs #:allow-other-keys) - (define input-directories - (match inputs - (((_ . dir) ...) - dir))) - (mkdir-p "_checkouts") - - (for-each - (lambda (input-dir) - (let ((elibdir (string-append input-dir %erlang-libdir))) - (when (directory-exists? elibdir) - (for-each - (lambda (dirname) - (let ((dest (string-append elibdir "/" dirname)) - (link (string-append "_checkouts/" dirname))) - (when (not (file-exists? link)) - ;; RETHINK: Maybe better copy and make writable to avoid some - ;; error messages e.g. when using with rebar3-git-vsn. - (symlink dest link)))) - (list-directories elibdir))))) - input-directories)) +(define (configure-environment . _) + (setenv "REBAR_CACHE_DIR" (getcwd))) + +(define* (erlang-depends #:key erlang-sources #:allow-other-keys) + (let ((checkouts "_checkouts")) + (mkdir-p checkouts) + (for-each (lambda (source) + (match source + ((name archive) + (let ((libdir (string-append checkouts sep name))) + (mkdir-p libdir) + (with-directory-excursion libdir + (unpack #:source archive)))))) + erlang-sources))) (define* (unpack #:key source #:allow-other-keys) "Unpack SOURCE in the working directory, and change directory within the @@ -134,6 +134,7 @@ (define* (install #:key name outputs (define %standard-phases (modify-phases gnu:%standard-phases (replace 'unpack unpack) + (add-after 'unpack 'configure-environment configure-environment) (delete 'bootstrap) (delete 'configure) (add-before 'build 'erlang-depends erlang-depends) From patchwork Wed Nov 8 09:22:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 56093 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 76A1127BBE9; Wed, 8 Nov 2023 09:27:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 A054627BBE2 for ; Wed, 8 Nov 2023 09:26:56 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0epN-0000gi-RL; Wed, 08 Nov 2023 04:26:25 -0500 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 1r0epM-0000fl-Cv for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:24 -0500 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 1r0epL-0005hY-LG for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:23 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0epy-00031j-1W for guix-patches@gnu.org; Wed, 08 Nov 2023 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH 2/5] gnu: Add erlang-goldrush. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Nov 2023 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66801@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.169943557511548 (code B ref 66801); Wed, 08 Nov 2023 09:27:02 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Nov 2023 09:26:15 +0000 Received: from localhost ([127.0.0.1]:44008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epC-000301-UF for submit@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:15 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:46135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0ep9-0002zP-GD for 66801@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:12 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4084de32db5so56666425e9.0 for <66801@debbugs.gnu.org>; Wed, 08 Nov 2023 01:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20230601.gappssmtp.com; s=20230601; t=1699435527; x=1700040327; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=viivGlrMkmICLpCcP4SxN3ZOA8ekQmPV99GlLoDJPfs=; b=cOXI0yU67mQH/HMfluG91RN39UhzEGwQ4Q3nqJTTDYb9nBnQIV7mN/STdT8KIy1SYc kru6pH3PYDC+bVX0Q1RAKsgDAETPnfWus2suzuQjcNDFYB6Q7SFCc/XROreae38YoHlJ NOMV4MaHwG9OOMFrl6iHsnTU29yR1px4anp2rEtsYjn3EQlBSWxAEf784wNw+vC0+zZ5 bL09UH0fE+cyFpJY37/Pf519x6CJ6WzYQiH75c2YxOVnMJ0aIti8RGaGbnkuJrx0A2kP a58/mD3ud7YPht2PdtDS5DmFI+bWzNQVy8CZgSM8l8HrXouVkxTOICh+AK34jhx+33XT t5Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699435527; x=1700040327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=viivGlrMkmICLpCcP4SxN3ZOA8ekQmPV99GlLoDJPfs=; b=pTY1FKjRCGHgJ318flraDPdqkDFQPBokj//YZNGH/cXtzlWX2FnHVSq7HGIcgmN1io wUC/6E8y0Ik/UcKaBs2a2Uy+Gw249Vp+9awQtKr2JHV93HHi3uryUDL4CP5MVUw40pOb cSInmczYkSAZiAODH9tkTaCjzfxeyN3d2mF++UdJCSDgfm+GWb3PtpmsMxxEO+v/vf+Z O5sPC3ro1lU2KWjFlWbsmFPwxY89MKTFD9ymDaZ3fPiHJ6bILdRNMfapK2Bnsj2WQkAg AqEPq4gCvZsRIyYeUT7isUfaOLPrloAfv6VMcdNRuw9RMaXu+zD8oYmkWvR82Qrme3xn NgKw== X-Gm-Message-State: AOJu0Yw5RS3aKKmY6OdlEwhRHVcTcYSr6IoYw4mIlbosCVLtmVtB/uj8 z1RGWzq5nETjxfYi8M+PDeOlB+uX7Hz6ej/NTCY= X-Google-Smtp-Source: AGHT+IEEEtB6BLpD2VMxTpNTRqlE0srp1Qkdjkzy893cyG3Em5voJkAqpfDeYAiHHWvVkSTPlScOKA== X-Received: by 2002:a05:600c:45cd:b0:409:325:e499 with SMTP id s13-20020a05600c45cd00b004090325e499mr1176864wmo.32.1699435527018; Wed, 08 Nov 2023 01:25:27 -0800 (PST) Received: from doug.com ([185.244.73.162]) by smtp.gmail.com with ESMTPSA id o8-20020a05600c510800b00407752f5ab6sm18841789wms.6.2023.11.08.01.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 01:25:26 -0800 (PST) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Wed, 8 Nov 2023 10:22:36 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 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: , 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 Change-Id: If978f3936375c9391f1655402a4504d708cfa67d --- gnu/packages/erlang-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 gnu/packages/erlang-xyz.scm diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm new file mode 100644 index 00000000..082af121 --- /dev/null +++ b/gnu/packages/erlang-xyz.scm @@ -0,0 +1,55 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Pierre-Henry Fröhring +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages erlang-xyz) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages base) + #:use-module (gnu packages) + #:use-module (guix build-system rebar) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix hg-download) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (srfi srfi-1) + #:use-module (guix git-download) + #:use-module (gnu packages version-control) + #:use-module (srfi srfi-26)) + +(define-public erlang-goldrush + (package + (name "erlang-goldrush") + (version "0.1.9") + (source + (origin + (method url-fetch) + (uri (hexpm-uri name version)) + (sha256 + (base32 "1ssck5yr7rnrfwzm55pbyi1scgs1sl1xim75h5sj5czwrwl43jwr")))) + (build-system rebar-build-system) + (synopsis "Erlang event stream processor") + (description "Erlang event stream processor") + (home-page "https://hex.pm/packages/goldrush") + (license license:isc))) + +;;; +;;; Avoid adding new packages to the end of this file. To reduce the chances +;;; of a merge conflict, place them above by existing packages with similar +;;; functionality or similar names. +;;; From patchwork Wed Nov 8 09:22:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 56095 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 43E9627BBE9; Wed, 8 Nov 2023 09:27:05 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 545C727BBE2 for ; Wed, 8 Nov 2023 09:27:04 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0epO-0000gy-4p; Wed, 08 Nov 2023 04:26:26 -0500 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 1r0epM-0000fs-Ku for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:24 -0500 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 1r0epM-0005hd-Cr for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:24 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0epy-00031q-Da for guix-patches@gnu.org; Wed, 08 Nov 2023 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH 3/5] gnu: Add erlang-lager. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Nov 2023 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66801@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.169943557611554 (code B ref 66801); Wed, 08 Nov 2023 09:27:02 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Nov 2023 09:26:16 +0000 Received: from localhost ([127.0.0.1]:44010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epD-00030D-JO for submit@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:15 -0500 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:54448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epA-0002zQ-H4 for 66801@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:13 -0500 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9dbb3d12aefso987948366b.0 for <66801@debbugs.gnu.org>; Wed, 08 Nov 2023 01:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20230601.gappssmtp.com; s=20230601; t=1699435528; x=1700040328; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wh93lj73XkJkBbjn7VxuKL8ELDNl9qzjp01s51TBgxU=; b=j91dBUpb7/2tNyB5t4vAx++a0Xybce1kHvUPP5yR/duK+HNOjZiuTzWbf9Uhpzi1Fs tZh64dWNOHRbFQJIjp+of4SJC6bIDEpW0DkiXzu6p0fQfsVPIFL5awFaatmTrD8G8UbZ MEcpYhdTewpn4YsCVPM8DkWhDclTm2AXrUe4JGoW+FNY0tC0L3FMI49Fg7EKG3fcgJIs Bt3RZOcCP0BrVwYvxX0Lhp3uu5ppwJQQGW2PCy4EGIGoIQ4EUhhB/Yj6bCk+AZq8UAk0 hqh2tRMOePBCbTuMD7QbJ5YNz7UiugyG3F8LQOmOjEpbYAY9XMw+SZC13REQySAXE+RG lfJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699435528; x=1700040328; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wh93lj73XkJkBbjn7VxuKL8ELDNl9qzjp01s51TBgxU=; b=WRhtBzNgpUibsnnJ8bDOhBHQr2xSfyfoQ/w6QNjH4dkycq84tFYTe8gKSdXRj3T3EZ mdDHX8Xn7Z87hRFzbBadPKXicNxO4ZSDVRGoGMtI1yyT9Vulr7GO/f6MNWwbvkiDbPtV scQly1/F/SqwY9Z2TGbwQkN+sYnTfEaQXjr8DhkXXE9ZxWeCiTAiNCvhDcH/ab+cK0O4 Mm5a1De+GKLFYXgd73tpJIUv9RCyZBoFlinmeaxzTcH0/tA4uDxh/m8tcdvGgbXz5udx viK/T19TGk35OYtJbX5CuVscr0UjPa1OVTBVv4iG3PnIk5qpDupbpGsRbCqspxC1VVu3 47DA== X-Gm-Message-State: AOJu0Yxc1hlTcpLE11FlfrF2tutHWeuZbvjtZ1eAWTjTj1iflVIi+PXI jhycHt1QxrRAFY6ERClRH3s3gIh31YPpApGapWE= X-Google-Smtp-Source: AGHT+IGDyOs3QuYwjiTtwKSJTka0tLq+e9ymW3PtnVR4Ko42YUbMAm9Mlg/uJDbOWbnO2clAgUsGWg== X-Received: by 2002:a17:906:4fd1:b0:9c3:8242:e665 with SMTP id i17-20020a1709064fd100b009c38242e665mr1086502ejw.8.1699435527893; Wed, 08 Nov 2023 01:25:27 -0800 (PST) Received: from doug.com ([185.244.73.162]) by smtp.gmail.com with ESMTPSA id o8-20020a05600c510800b00407752f5ab6sm18841789wms.6.2023.11.08.01.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 01:25:27 -0800 (PST) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Wed, 8 Nov 2023 10:22:37 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 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: , 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 Change-Id: Iee1182644d57b7cca08afc6078102cc2409ede18 --- gnu/packages/erlang-xyz.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm index 082af121..4ed8099f 100644 --- a/gnu/packages/erlang-xyz.scm +++ b/gnu/packages/erlang-xyz.scm @@ -48,6 +48,25 @@ (define-public erlang-goldrush (home-page "https://hex.pm/packages/goldrush") (license license:isc))) +(define-public erlang-lager + (package + (name "erlang-lager") + (version "3.9.2") + (source + (origin + (method url-fetch) + (uri (hexpm-uri name version)) + (sha256 + (base32 "0a0c6kvc2jman62vrx2l3nx6xqn8s5l1glvf2mk7xjx8hyg4v43z")))) + (build-system rebar-build-system) + ;; XXX: tests fail. + (arguments (list #:tests? #f)) + (propagated-inputs (list erlang-goldrush)) + (synopsis "Erlang logging framework") + (description "Erlang logging framework") + (home-page "https://hexdocs.pm/lager/") + (license license:asl2.0))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From patchwork Wed Nov 8 09:22:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 56096 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 7FC9827BBE9; Wed, 8 Nov 2023 09:27:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 EA86C27BBE2 for ; Wed, 8 Nov 2023 09:27:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0epO-0000h0-A1; Wed, 08 Nov 2023 04:26:26 -0500 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 1r0epM-0000ft-N3 for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:24 -0500 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 1r0epM-0005hf-Ec for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:24 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0epy-00031y-RA for guix-patches@gnu.org; Wed, 08 Nov 2023 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH 4/5] gnu: Add erlang-unicode-util-compat. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Nov 2023 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66801@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.169943557811566 (code B ref 66801); Wed, 08 Nov 2023 09:27:02 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Nov 2023 09:26:18 +0000 Received: from localhost ([127.0.0.1]:44012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epG-00030R-0y for submit@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:18 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:51435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epB-0002zU-Bo for 66801@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:13 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4094301d505so49285745e9.2 for <66801@debbugs.gnu.org>; Wed, 08 Nov 2023 01:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20230601.gappssmtp.com; s=20230601; t=1699435529; x=1700040329; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4ypsHr3nKHrynpXknE/uShktTb0OsbfsjhITD2M0r/8=; b=dLpYq3xYA/BgUT9CAdtl2LYPgn07dz9dMaTKDKRZv3FD3jD1egaA1taXH9xbibcLPG IqOD/pqHYpJ4tojobQEz0rNd6dYL5D/CzD9IjMlckrcItRLf+ZV5H4pEUxBjYN+bWcWM sLEgc0slYuE63mtuIs3p6kkRUZ+6edPUQSr/EmouR3aDVxA3TCABvjKBFkcZth4J6T7/ X+spB0qunvPzJpuEjZKuVBwXtejyYCyvdij/1VRTfW4HM5swXqfP252tF2lvXouUV8Zb i3cVjk3eintOfNZWbaHvwTqk7gLQc50JsrInJos81mr0g47/zwZA0eZ186i/WU+kNCjS FLYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699435529; x=1700040329; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4ypsHr3nKHrynpXknE/uShktTb0OsbfsjhITD2M0r/8=; b=QWPz70DiEhqyBdTKQ3BUtnMuH7OYwYpiPb4a6jStGIgKFURRGDiiN9sHq8S3cc7m3K igdGlohHMwDe4cCN0He0J/BkqGYDKQSSPaS4PB2TS3j280BcrzDj5jtGysjUk3/7i6aL wXyXBnpsQdqDCwJJnl8kZabUS5YnCXz69a+Xpv35iSwleBqHdnqwd5EZLK3Nqd8ZzHIm LTaHfK5MsFyDypJsWl9fkFku1xP4JyR/JixdsGUp8Jo/OhoaHCzAyMe80DceB6lnwaSq O5BMgq5aqjv5c48Y2rG/B1R5givy/ioV0v3/2MOCNebD61G2gZ1o/ke+dyq7Do3XJZ4c UzOg== X-Gm-Message-State: AOJu0YyDS8SGo1Uws1owR31FL99EjiGZlLa1SaHJAUGIFSUweHz3agyA N6YtW5JNSZUJObt3InKGx7mcZStqag4SZTx9cA8= X-Google-Smtp-Source: AGHT+IGThD8KufFajqFNaxjxaEfaAFxptWxIYs+6F1U83oyWA7UvE1PqSCCogsoDIIrtSX3lzaksgw== X-Received: by 2002:a05:600c:32a7:b0:408:fe93:a2f7 with SMTP id t39-20020a05600c32a700b00408fe93a2f7mr1251287wmp.37.1699435528809; Wed, 08 Nov 2023 01:25:28 -0800 (PST) Received: from doug.com ([185.244.73.162]) by smtp.gmail.com with ESMTPSA id o8-20020a05600c510800b00407752f5ab6sm18841789wms.6.2023.11.08.01.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 01:25:28 -0800 (PST) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Wed, 8 Nov 2023 10:22:38 +0100 Message-ID: <88315e12fd0e624d5f41f92fb8f334f4f5332ff0.1699434044.git.phfrohring@deeplinks.com> X-Mailer: git-send-email 2.41.0 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: , 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 Change-Id: I15009c5dbe10c48bcdba9a143576122c877974b4 --- gnu/packages/erlang-xyz.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm index 4ed8099f..0c614542 100644 --- a/gnu/packages/erlang-xyz.scm +++ b/gnu/packages/erlang-xyz.scm @@ -67,6 +67,22 @@ (define-public erlang-lager (home-page "https://hexdocs.pm/lager/") (license license:asl2.0))) +(define-public erlang-unicode-util-compat + (package + (name "erlang-unicode-util-compat") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (hexpm-uri name version)) + (sha256 + (base32 "08952lw8cjdw8w171lv8wqbrxc4rcmb3jhkrdb7n06gngpbfdvi5")))) + (build-system rebar-build-system) + (synopsis "Unicode compatibility library for Erlang < 20") + (description "Unicode compatibility library for Erlang < 20.") + (home-page "https://hex.pm/packages/unicode_util_compat") + (license license:asl2.0))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar From patchwork Wed Nov 8 09:22:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 56092 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 4497B27BBEA; Wed, 8 Nov 2023 09:26:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 A57C427BBE9 for ; Wed, 8 Nov 2023 09:26:52 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0epN-0000gj-UM; Wed, 08 Nov 2023 04:26:25 -0500 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 1r0epN-0000gO-3P for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:25 -0500 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 1r0epM-0005hq-Q9 for guix-patches@gnu.org; Wed, 08 Nov 2023 04:26:24 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0epz-000325-6c for guix-patches@gnu.org; Wed, 08 Nov 2023 04:27:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH 5/5] gnu: Add erlang-idna. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Nov 2023 09:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66801@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.169943557911574 (code B ref 66801); Wed, 08 Nov 2023 09:27:03 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Nov 2023 09:26:19 +0000 Received: from localhost ([127.0.0.1]:44014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epG-00030V-Fk for submit@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:18 -0500 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:56596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0epC-0002zW-Bz for 66801@debbugs.gnu.org; Wed, 08 Nov 2023 04:26:14 -0500 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c7369df9d6so11609671fa.1 for <66801@debbugs.gnu.org>; Wed, 08 Nov 2023 01:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20230601.gappssmtp.com; s=20230601; t=1699435530; x=1700040330; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1z9opQWdSkA+NOZihPG5U38VAJQ4CKHGmixh0ZwD+mg=; b=t5hs+SJEiDjd8olFSPUfyOE+pt+xpZR79NkSHNz/n1WRNMsjEcoWmhOORYprCjyrby /wdpieX/YB9ysWIPrLaOPe2v20GWoc429ZCoSbIM16fggk7H+dU8fzidyh2vsxjO7RSU SeoOdXiybzNqQaqw4fCT85aRH5x+OQ30ytNHgkVneNXFMWj1HvGD/6zDvy+o9fuv8ldk A71IcPN+Hzfq6favDPlZzbvEhx8XQaoev6vItFMzVBWEFMlMKfLDNRK/6TVGxmZRHwrj 6/kM000/pba6RWYhsrl8Ss3VruwiD9qAvak+uA+f9fy/nJ9bfcGg+fCIz0e1i3YusqmU E8Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699435530; x=1700040330; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1z9opQWdSkA+NOZihPG5U38VAJQ4CKHGmixh0ZwD+mg=; b=o6egN8yY3dZBExlArEui6934t5gwNqwa48xhPr5O+xQAsiQdvXuIolqOO92G6XEyDn MC/tt3V1/+EvR9mNrUaKeQFlKF/dgjsBLMukzTv+giWgmW0BU+KEYcX7ObNJkkaMFJ07 RTIt3/pZInphykllK+MPbSGKXWbxNIUqjDjY1aCM/Y1rh0gjP0noWK/PAUfnz727YZjI 6caeO/w0AQEC+BK94YFpk07jpMFlgbgNuDTATgWu4BiQx/8fp6Nh/5bSazCIwPCtqIY7 LOzETGB7WSmd6ALy6YnGIeLUuJiAITM61sJH5cW+eyGmMQyI/uKqIPxpA2bz4MkS0yuV l0OA== X-Gm-Message-State: AOJu0YwXt73VhuUEOnb0Vsy8yZuDH01JnC7oimSG6cVa8eFfNiFSt8my jLjAxaurfwlj5bjnvs71DKJNeD28b08bv/rRo/A= X-Google-Smtp-Source: AGHT+IHHFgbednE9vUt18CJYaqVuxaLiG6eINNBZZOgji6F2cUtDlrpqo8T1xt9vRdfp69NzvWsotA== X-Received: by 2002:a2e:2c15:0:b0:2c0:2583:520e with SMTP id s21-20020a2e2c15000000b002c02583520emr1167881ljs.41.1699435529702; Wed, 08 Nov 2023 01:25:29 -0800 (PST) Received: from doug.com ([185.244.73.162]) by smtp.gmail.com with ESMTPSA id o8-20020a05600c510800b00407752f5ab6sm18841789wms.6.2023.11.08.01.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 01:25:29 -0800 (PST) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Wed, 8 Nov 2023 10:22:39 +0100 Message-ID: <0ac400beb2e94456ae681c6e2d6e09d5513053e6.1699434044.git.phfrohring@deeplinks.com> X-Mailer: git-send-email 2.41.0 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: , 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 Change-Id: Ie747409e9ef1f8a62ebefbc07131fef91e441a67 --- gnu/packages/erlang-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm index 0c614542..fb614505 100644 --- a/gnu/packages/erlang-xyz.scm +++ b/gnu/packages/erlang-xyz.scm @@ -83,6 +83,27 @@ (define-public erlang-unicode-util-compat (home-page "https://hex.pm/packages/unicode_util_compat") (license license:asl2.0))) +(define-public erlang-idna + (package + (name "erlang-idna") + (version "6.1.1") + (source + (origin + (method url-fetch) + (uri (hexpm-uri name version)) + (sha256 + (base32 "1sjcjibl34sprpf1dgdmzfww24xlyy34lpj7mhcys4j4i6vnwdwj")))) + (build-system rebar-build-system) + (propagated-inputs (list erlang-unicode-util-compat)) + (synopsis + "Erlang Internationalized Domain Names in Applications (IDNA) protocol") + (description + "Library to register and look up IDNs in a way + that does not require changes to the DNS itself. IDNA is only meant for +processing domain names, not free text. See: RFC 5891.") + (home-page "https://hexdocs.pm/idna/") + (license license:expat))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar