From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gJVdN5h6xGFGBgEAgWs5BA (envelope-from ) for ; Thu, 23 Dec 2021 14:33:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KHgiM5h6xGGxagAAB5/wlQ (envelope-from ) for ; Thu, 23 Dec 2021 13:33:12 +0000 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 814C827B32 for ; Thu, 23 Dec 2021 14:33:12 +0100 (CET) Received: from localhost ([::1]:41278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0ODX-0003yF-KV for larch@yhetil.org; Thu, 23 Dec 2021 08:33:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0ODP-0003sB-9Z for guix-patches@gnu.org; Thu, 23 Dec 2021 08:33:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0ODO-0002Yv-Vl for guix-patches@gnu.org; Thu, 23 Dec 2021 08:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n0ODO-0007FU-N2 for guix-patches@gnu.org; Thu, 23 Dec 2021 08:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52607] [PATCH] gnu: Add myrddin. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Dec 2021 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52607 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52607@debbugs.gnu.org Cc: Guix Together , Jorge Acereda , Raghav Gururajan X-Debbugs-Original-To: jgart via Guix-patches via , 52607@debbugs.gnu.org Received: via spool by 52607-submit@debbugs.gnu.org id=B52607.164026635427816 (code B ref 52607); Thu, 23 Dec 2021 13:33:02 +0000 Received: (at 52607) by debbugs.gnu.org; 23 Dec 2021 13:32:34 +0000 Received: from localhost ([127.0.0.1]:60644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0OCv-0007EU-Jd for submit@debbugs.gnu.org; Thu, 23 Dec 2021 08:32:34 -0500 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:54064 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0OCn-0007E3-Vp for 52607@debbugs.gnu.org; Thu, 23 Dec 2021 08:32:29 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoctocell.xyz; s=mail; t=1640266339; bh=zK2/iuuri7dsEUHZ65+aJ1FETLR+W5eQ8dmStAJES6k=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=V/TBIa0/asjdhraZPdTD4HnRLiwqhed16xO6VkOtjWpIfTOeXnvIlQn65egzYrmA7 np7GM5WMiSzq+lupRKyetpb/nixCJhxlTJ8AwhIA83rWejR6R5jiRZgxu8RkrYtSUF ZVgdlylWdjmNjuPKuLwnlBPCiroO1A+nNIhfuLB0= In-Reply-To: <20211218201635.17995-1-jgart@dismail.de> References: <20211218201635.17995-1-jgart@dismail.de> Date: Thu, 23 Dec 2021 14:32:18 +0100 Message-ID: <877dbvcuql.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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=1640266392; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=zK2/iuuri7dsEUHZ65+aJ1FETLR+W5eQ8dmStAJES6k=; b=trXgLatM1l2KRglu+/uR1sMNmveN0gG+Rn2SHD0faU6pGfTpPEeudqKnP4wpAkWSjBaEld XD2ngxRESVVYSt1mxRWfYTZ8xLeW6IW2jXB+7DSL1SeO5AqFMNFtXxqyAdlq4HFpergla6 yL5078YbgU4l+PbxWjT4yAUk1nZomsuBxdV4vIIMr+C5f8Hi8hMeVMBoSdJJYA42l66Ed5 RPgJHausRCjrlVGAA+Wvp7pPlhowmeqyd0LPv0QoNpmc2AwRe34xAFcUeiTQ/GhqnILQnI q2VsGlM6OkrRdWNs8CZkIleuZ25hwOzlVzsJ+GIZcRqNyDDy1yC/khmsZln2JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640266392; a=rsa-sha256; cv=none; b=u0IIsCN+sJrLfPHEEVo+zNBrYEA1CAFVnN0dnSRepL/yH+g4uOYTUvtEBEovkSCCJDfqub iBeeh1uxrpHYug+PHkuUiwgJDJmmcooWMCsZ6Pg4bhoQU/8bHRcBjGCb0hUKZcC4lsnvaf kVHNzRbqLs+mCzM3+8uBT/WV+8wZV6i7lau2JkNdNVTQz9cSD9VOtScjwJazW974slWCrX +w7ZZ072kKRooNahXfz/esO3sVD/p5RdGYPy2xetz4ucZ/CuMLk9RfIqtOzXr5p91qzf+s dWDABSdgdjMs5gpbO/Y3JkYjJ5Pyc2Er20ovug5RSxhI7P5Gl7cNwh2EAr1YZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="V/TBIa0/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (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: -4.55 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="V/TBIa0/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (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: 814C827B32 X-Spam-Score: -4.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: fpPpzNNgaRgx --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, jgart via schrieb am Samstag der 18. Dezember 2021 um 15:16 -05: > Hi Guixers, > > This is one of the packages that we worked on in the packaging meetup tod= ay. > > all best, > > jgart This part should go under the =E2=80=9C---=E2=80=9D line, otherwise they wi= ll be part of the commit message. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add myrddin.scm. > * gnu/packages/myrddin.scm: New file. > > Co-authored-by: jgart > Co-authored-by: Jorge Acereda > Co-authored-by: Raghav Gururajan > --- > gnu/local.mk | 1 + > gnu/packages/myrddin.scm | 66 ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 67 insertions(+) > create mode 100644 gnu/packages/myrddin.scm > > diff --git a/gnu/packages/myrddin.scm b/gnu/packages/myrddin.scm > new file mode 100644 > index 0000000000..0633fb4fb2 > --- /dev/null > +++ b/gnu/packages/myrddin.scm > @@ -0,0 +1,66 @@ > +;;; GNU Guix --- Functional package management for GNU > +;;; Copyright =C2=A9 2021 Guix Together I am not a laywer, but is =E2=80=9CGuix Together=E2=80=9D a legal entity? = It=E2=80=99s probably better to put the authors=E2=80=99 names here instead. > +;;; 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 myrddin) > + #:use-module (guix build-system gnu) > + #:use-module (guix utils) > + #:use-module (guix download) > + #:use-module (guix git-download) > + #:use-module (gnu packages bison) > + #:use-module (gnu packages pkg-config) > + #:use-module ((guix licenses) #:prefix license:) > + #:use-module (guix packages)) > + > +(define-public myrddin > + (package > + (name "myrddin") > + (version "0.3.1") > + (source > + (origin > + (method git-fetch) > + (uri > + (git-reference > + (url "https://github.com/oridb/mc") > + (commit (string-append "r" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "0acqqz74ypmjvi1yqz7g1ymyk3mmkzwqgmdd3s7s287bdy4a72gc"))= )) > + (build-system gnu-build-system) > + (arguments > + `(#:make-flags > + (list > + (string-append "CC=3D" ,(cc-for-target)) > + (string-append "PREFIX=3D" %output)) Nitpick: The new Gexp style could be used instead. =2D-8<---------------cut here---------------start------------->8--- (list #:make-flags #~(list (string-append "CC=3D" #$(cc-for-target)) (string-append "PREFIX=3D" #$output)) #:phases '(modify-phases %standard-phases (replace 'build (lambda* (#:key make-flags #:allow-other-keys) (apply invoke "make" "bootstrap" make-flags) (apply invoke "make" make-flags))))) =2D-8<---------------cut here---------------end--------------->8--- > + #:phases > + (modify-phases %standard-phases > + (replace 'build > + (lambda* (#:key make-flags #:allow-other-keys) > + (apply invoke "make" "bootstrap" make-flags) > + (apply invoke "make" make-flags)))))) The =E2=80=98parallel-build?=E2=80=99 flag should also be respected. > + (native-inputs > + (list bison pkg-config)) > + (home-page "https://myrlang.org") > + (synopsis "Systems language that is both powerful and fun to use") This sounds like an advert; I suggest =E2=80=9CProgramming language that aims for control and simplicity=E2=80= =9D =20=20 > + (description > +"Myrddin is a systems language that is both powerful and fun to > +use. It aims for C like low level control, a lightweight high quality Again, =E2=80=9Cfun=E2=80=9D is probably not the best word. =E2=80=9Chigh = quality=E2=80=9D is subjective and as a user, it doesn=E2=80=99t really tell me anything. > +implementation, and features you may find familiar from languages like > +like rust and ocaml. This combination makes Myrddin suitable for anythi= ng Capitalize =E2=80=9CRust=E2=80=9D and =E2=80=9COCaml=E2=80=9D. Package builds fine! =2D-8<---------------cut here---------------start------------->8--- Result of running `guix review 20211218201635.17995-1-jgart@dismail.de': (s= till a WIP) Successfully built 1 out of 1 package(s). No lint warnings were emitted. =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmHEemIVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5//0P/37cLn3BnDEiHSHcxSWgZKnEv09G ONlWzLUT4rv9X7k49LD1fO59nVzHMw4VZYTWxBs6uoaATTBZ3d/rzRAcPh7e4Bev 5H2vviQSRyEtLQ/1caA5jLfrRzHan9wHXNC7ldG55L5PVZE533JGUqst1q5Z6XR/ CyI9t4fOsSFlOtsMyWQ2Srn0fsvQUOZNHGM9Q6/0j9AAz05JJLEm9GuFtT3DgU4l WQNCLOmc5I1uK01nhdyeIq+AhgR5YezSurVZwMibFsio1M4GGg4UZPI/Klka0CD/ XX9kdQfbTFhYsFM0EscaRpT4wtTuEFrI+erm7Xt2aAHGVaSOZm6A0/kQ+m64VdYk nTNLF1KLBD7WLh/1crgzoqIdPavRPD3ZaeCiJpgcGBesgDhlm1gjksnykblVC+LZ OFg66B79TTd88LOQdDd2IqbA7CB5x0BeSXB7MIeT8pImc2DGQ8AogyN7EjDx6hLm 8JkNb8oMjMTQZ+6AEfhUERi9Fm+wBf0Z3M0GRCaW/btEtaIwZFna8zrA2ElqUOEp JP+OtsX3F935krW+jPJrpcGafMtcyOGsqK2hq+PAIg18cHBihWI4LBVIkW8gtGrC suKEmfuQedXVcKMuNoYOxnopnUJxx94lKD808mqtQE3+ttsfuaLdgNx1oCYxkPKh SpCTOmunu7KhdlSX =TUhT -----END PGP SIGNATURE----- --=-=-=--