From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sKjnAH7iNWNYgwEAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 20:22:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gDnmAH7iNWPzWQAA9RJhRA (envelope-from ) for ; Thu, 29 Sep 2022 20:22:54 +0200 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 BBB7438076 for ; Thu, 29 Sep 2022 20:22:53 +0200 (CEST) Received: from localhost ([::1]:46978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odyBJ-0006gm-JH for larch@yhetil.org; Thu, 29 Sep 2022 14:22:53 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664475773; h=from:from:sender:sender: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=q79G5mXNlwe28+lEhloCVWI8ZA951eKgc8CehIlCwvs=; b=mY4YBz8V48X+Eyg1qYyHZlSFH69eEaxsN9gQmerCFZmH7qNTBua5Wu8p4x1s8QinY9DEaE C0WpUhbdXKGRafsR1MVjP3JSTtoRWep8kBM0r3NL8ZZjeWxkHefUgUiIHw2lJfrg0seeRh 6jEbTSuprQ9db3MvN4KlAgkRYAz4NaOAnh7+ukQGzPOPw7pmREIUSQZOJHvbC4+9P6mjG4 95psDMOwkpgHgQOzGgk3j1YO314V9hm/yXXnEaCO+uzBeFpmjgvxkYox9vadgVO93rlnpL s5hHQy0dJssoJpURds4P+q7tI+g1Pous/PKdPHJeMBf9p4JP2/wdeaEZsHyglg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664475773; a=rsa-sha256; cv=none; b=ivu78qfRFTz1PT0TDEjXWTrL7aVp8tzGccQh1Jn/woa1p3MxytBgZixoNBDhNiZzD4LFzE yYpM9QTKoZBeUxScsMeIUGdtpZjej5E2b5hRnepgW2bQpU4qbhR3j6wJLvzffEkKhHxA8W MZIwCCNMVYvuJ1pzv43w27rIim2Oez77M9O7LhC743TaIqldMo9Xs3niAuh0bjy9rYvNvB CNEkoEaQCDxPTZvblhCFxC0HnujhLk1duUeLx/AKnB/F9AQaob8emNVbadg6oiLvCXx35N zaRqUC8GZ5tv2GZXWz7QpgGuPxjALDq4tblJV5TkwkT1tg8K4zMQlP+q1s2Xbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=btJ7xo9q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); 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" X-Migadu-Spam-Score: 8.86 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=btJ7xo9q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); 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" X-Migadu-Queue-Id: BBB7438076 X-Spam-Score: 8.86 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: FYRy2Lx88iEH * 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))) -- 2.37.3