From patchwork Thu Sep 29 16:47:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Csepp X-Patchwork-Id: 43055 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 248FC27BBEA; Thu, 29 Sep 2022 18:37:43 +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=-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 91AC327BBE9 for ; Thu, 29 Sep 2022 18:37:42 +0100 (BST) Received: from localhost ([::1]:49468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odxTh-0003P8-NX for patchwork@mira.cbaines.net; Thu, 29 Sep 2022 13:37:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwib-0000LB-Vp for guix-patches@gnu.org; Thu, 29 Sep 2022 12:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odwib-00069c-NO for guix-patches@gnu.org; Thu, 29 Sep 2022 12:49:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odwib-0002NS-II for guix-patches@gnu.org; Thu, 29 Sep 2022 12:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58174] [PATCH 1/3] gnu: Add ocaml-domain-name. Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58174@debbugs.gnu.org Cc: raingloom X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16644700879055 (code B ref -1); Thu, 29 Sep 2022 16:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2022 16:48:07 +0000 Received: from localhost ([127.0.0.1]:39439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odwhi-0002Lz-LS for submit@debbugs.gnu.org; Thu, 29 Sep 2022 12:48:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:56698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odwhW-0002KN-FX for submit@debbugs.gnu.org; Thu, 29 Sep 2022 12:47:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhU-00071z-OJ for guix-patches@gnu.org; Thu, 29 Sep 2022 12:47:54 -0400 Received: from mx0.riseup.net ([198.252.153.6]:43910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhS-00063f-HR for guix-patches@gnu.org; Thu, 29 Sep 2022 12:47:52 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MdfRm1pw9z9sYr for ; Thu, 29 Sep 2022 16:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1664470068; bh=2LyByFSNgHrPdPUfx6P76mbn0yjuZbQti0tLGjFmf84=; h=From:To:Cc:Subject:Date:From; b=WttlLeKtaZ4Lo/rhd/VZ+At2c3K/o9fCBeF2eK2BQOVa+OMHYcDAZOvmkeMsMM1Qy 6XkpUDUA1Abv7StI5PBidec6OgMDooT/QiWC3/kRnrXY2fPTbyPElRBiQPTFi56zl3 GfkCTAj4HDcCmFk2Tr2rFW5r7FLxZkOB6Jk3wZUE= X-Riseup-User-ID: 3647500C05D3E118E2C6AE007FE80F140E2C0DC997D3D0ACD0D5E4049DE4BE93 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MdfRl2Xtqz1xx7; Thu, 29 Sep 2022 16:47:47 +0000 (UTC) From: raingloom Date: Thu, 29 Sep 2022 18:47:16 +0200 Message-Id: <20220929164718.16973-1-raingloom@riseup.net> MIME-Version: 1.0 Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches gnu/packages/ocaml-mirage.scm: New file. gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/ocaml-mirage.scm | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 gnu/packages/ocaml-mirage.scm diff --git a/gnu/local.mk b/gnu/local.mk index 0134fb53d8..2d2e8a3a6f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -449,6 +449,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/nutrition.scm \ %D%/packages/nvi.scm \ %D%/packages/ocaml.scm \ + %D%/packages/ocaml-mirage.scm \ %D%/packages/ocr.scm \ %D%/packages/openkinect.scm \ %D%/packages/onc-rpc.scm \ diff --git a/gnu/packages/ocaml-mirage.scm b/gnu/packages/ocaml-mirage.scm new file mode 100644 index 0000000000..67514c4932 --- /dev/null +++ b/gnu/packages/ocaml-mirage.scm @@ -0,0 +1,56 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Csepp +;;; +;;; 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 ocaml-mirage) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system dune) + #:use-module (gnu packages ocaml) + #:use-module ((guix licenses) + #:prefix license:)) + +(define-public ocaml-domain-name + (package + (name "ocaml-domain-name") + (version "0.4.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hannesm/domain-name/") + (commit (string-append "v" version)))) + (file-name name) + (sha256 + (base32 + "1a669zz1pc7sqbi1c13jsnp8algcph2b8gr5fjrjhyh3p232770k")))) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; TODO -j ncpu equivalent + (invoke "dune" "runtest" "-p" "domain-name"))))))) + (build-system dune-build-system) + (native-inputs (list ocaml-alcotest)) + (home-page "https://github.com/hannesm/domain-name") + (synopsis "RFC 1035 Internet domain name data structure and parser") + (description + "Parses and constructs RFC compliant domain names. The invariants on the +length of domain names are preserved throughout the module.") + (license license:isc))) From patchwork Thu Sep 29 16:47:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Csepp X-Patchwork-Id: 43057 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 C656327BBEA; Thu, 29 Sep 2022 19:22:29 +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=-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 87FC727BBE9 for ; Thu, 29 Sep 2022 19:22:29 +0100 (BST) Received: from localhost ([::1]:46978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odyB2-0006gm-Od for patchwork@mira.cbaines.net; Thu, 29 Sep 2022 14:22:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhf-0007ER-6Y for guix-patches@gnu.org; Thu, 29 Sep 2022 12:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odwhe-000650-Tn for guix-patches@gnu.org; Thu, 29 Sep 2022 12:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odwhe-0002LP-Ol for guix-patches@gnu.org; Thu, 29 Sep 2022 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58173] [PATCH 2/3] gnu: Add ocaml-macaddr. Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58173 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58173@debbugs.gnu.org Cc: raingloom X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16644700788986 (code B ref -1); Thu, 29 Sep 2022 16:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2022 16:47:58 +0000 Received: from localhost ([127.0.0.1]:39433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odwha-0002Km-55 for submit@debbugs.gnu.org; Thu, 29 Sep 2022 12:47:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:56702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odwhW-0002KP-H9 for submit@debbugs.gnu.org; Thu, 29 Sep 2022 12:47:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhV-00071y-0O for guix-patches@gnu.org; Thu, 29 Sep 2022 12:47:54 -0400 Received: from mx0.riseup.net ([198.252.153.6]:43918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhS-00063h-HZ for guix-patches@gnu.org; Thu, 29 Sep 2022 12:47:52 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MdfRn3c0Hz9sbs for ; Thu, 29 Sep 2022 16:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1664470069; bh=LiIjNQrwwkfytrZw8bdU0U+Uo8jnoXazst6s+oElckI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=btJ7xo9quLpgqPAEyTPdAS5MTQH8iIo9z46rIVUUQbP/QOmsHReLN3wI+J+yntxBK JOCCfZ27sdJMvJ/RKQMC8bzYqp8XiittKfRnXOvbMhfyXjxSLa1o9LqMRQjG1FcW8X a1zf+dWXRlbPYgFIISzT3Ho9DF5+4tHiaCICwFGE= X-Riseup-User-ID: 3C22674C709E0CFF26112298B24DB50830F7E72ECD93DCDB883C1DF629975E52 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MdfRm4Pgjz1yQr; Thu, 29 Sep 2022 16:47:48 +0000 (UTC) From: raingloom Date: Thu, 29 Sep 2022 18:47:17 +0200 Message-Id: <20220929164718.16973-2-raingloom@riseup.net> In-Reply-To: <20220929164718.16973-1-raingloom@riseup.net> References: <20220929164718.16973-1-raingloom@riseup.net> MIME-Version: 1.0 Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml-mirage.scm (ipaddr-arguments) (ocaml-macaddr): New variables. --- gnu/packages/ocaml-mirage.scm | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/ocaml-mirage.scm b/gnu/packages/ocaml-mirage.scm index 67514c4932..b1389507d5 100644 --- a/gnu/packages/ocaml-mirage.scm +++ b/gnu/packages/ocaml-mirage.scm @@ -54,3 +54,41 @@ (define-public ocaml-domain-name "Parses and constructs RFC compliant domain names. The invariants on the length of domain names are preserved throughout the module.") (license license:isc))) + +(define (ipaddr-arguments pkg) + `(#:package ,pkg + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; no separate tests directory + (invoke "dune" "runtest" "-p" ,pkg))))))) + +(define-public ocaml-macaddr + (package + (name "ocaml-macaddr") + (version "5.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mirage/ocaml-ipaddr/") + (commit (string-append "v" version)))) + (file-name name) + (sha256 + (base32 + "1zgwx0ms3l4k4dzwnkrwq4zzqjrddjsvqn66mbd0rm6aq1ib019d")))) + (build-system dune-build-system) + (arguments (ipaddr-arguments "macaddr")) + (propagated-inputs (list ocaml-cstruct)) + (native-inputs (list ocaml-ounit2 ocaml-ppx-sexp-conv)) + (home-page "https://github.com/mirage/ocaml-ipaddr") + (synopsis "OCaml library for manipulation of MAC address representations") + (description + "@itemize +@item MAC-48 (Ethernet) address support +@item `Macaddr` is a @code{Map.OrderedType} +@item All types have sexplib serializers/deserializers optionally via the +`Macaddr_sexp` library +@end itemize") + (license license:isc))) From patchwork Thu Sep 29 16:47:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Csepp X-Patchwork-Id: 43056 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 E5D5827BBEA; Thu, 29 Sep 2022 19:22:14 +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=-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 A55F827BBE9 for ; Thu, 29 Sep 2022 19:22:14 +0100 (BST) Received: from localhost ([::1]:42240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odyAn-0006V2-RX for patchwork@mira.cbaines.net; Thu, 29 Sep 2022 14:22:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhe-0007Dm-Px for guix-patches@gnu.org; Thu, 29 Sep 2022 12:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odwhe-00064o-Gn for guix-patches@gnu.org; Thu, 29 Sep 2022 12:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odwhe-0002LB-7i for guix-patches@gnu.org; Thu, 29 Sep 2022 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58172] [PATCH 3/3] gnu: Add ocaml-ipaddr. Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58172@debbugs.gnu.org Cc: raingloom X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16644700788979 (code B ref -1); Thu, 29 Sep 2022 16:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2022 16:47:58 +0000 Received: from localhost ([127.0.0.1]:39431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odwhZ-0002Kk-S3 for submit@debbugs.gnu.org; Thu, 29 Sep 2022 12:47:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:56700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odwhW-0002KO-G9 for submit@debbugs.gnu.org; Thu, 29 Sep 2022 12:47:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhV-00072H-Hh for guix-patches@gnu.org; Thu, 29 Sep 2022 12:47:54 -0400 Received: from mx0.riseup.net ([198.252.153.6]:43932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odwhT-00063s-Ry for guix-patches@gnu.org; Thu, 29 Sep 2022 12:47:53 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MdfRp5K8Lz9sbt for ; Thu, 29 Sep 2022 16:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1664470070; bh=u8cN950ZxHGonnH8Ot55V/YuUtr01uqOfXL4kC8nu7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ao+HKdIWOtjZa5f6WXbf0UkuYQERy/KEFqnbJ8DfN2yB2bfvkuTiaqHAgXmNeXzkY TG/hixPZRDfJ3un0bIWbv/6jZ1/H1v8yc/ecNSVOWoZ2gJSIqw/zStH/0q9zjyn/WH FSUtRZAg+Weov0lxNVLfWIeWt7shUyxszi8gPOuE= X-Riseup-User-ID: 4CFA2FDEBDFC3831F3E9E2150F718AABBB3C6A8066BE0B64089945CC9030567D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MdfRn5zY3z1xx7; Thu, 29 Sep 2022 16:47:49 +0000 (UTC) From: raingloom Date: Thu, 29 Sep 2022 18:47:18 +0200 Message-Id: <20220929164718.16973-3-raingloom@riseup.net> In-Reply-To: <20220929164718.16973-1-raingloom@riseup.net> References: <20220929164718.16973-1-raingloom@riseup.net> MIME-Version: 1.0 Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml-mirage.scm (ocaml-ipaddr): New variable. --- This is the first of a number of packages needed to get MirageOS building under Guix. gnu/packages/ocaml-mirage.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/ocaml-mirage.scm b/gnu/packages/ocaml-mirage.scm index b1389507d5..488d46fcf5 100644 --- a/gnu/packages/ocaml-mirage.scm +++ b/gnu/packages/ocaml-mirage.scm @@ -92,3 +92,16 @@ (define-public ocaml-macaddr `Macaddr_sexp` library @end itemize") (license license:isc))) + +(define-public ocaml-ipaddr + ;; same repo and versions as ocaml-macaddr + (package + (inherit ocaml-macaddr) + (name "ocaml-ipaddr") + (arguments (ipaddr-arguments "macaddr")) + (propagated-inputs (list ocaml-macaddr ocaml-domain-name)) + (synopsis + "Library for manipulation of IP (and MAC) address representations") + (description + "IP address types with serialization, supporting a wide range of RFCs.") + (license license:isc)))