From patchwork Sat Dec 18 20:16:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 35395 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 C714027BBEA; Sat, 18 Dec 2021 20:19:20 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 3078527BBE9 for ; Sat, 18 Dec 2021 20:19:20 +0000 (GMT) Received: from localhost ([::1]:42090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mygAp-0006tf-Dn for patchwork@mira.cbaines.net; Sat, 18 Dec 2021 15:19:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mygAY-0006tV-Hu for guix-patches@gnu.org; Sat, 18 Dec 2021 15:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mygAY-000570-9F for guix-patches@gnu.org; Sat, 18 Dec 2021 15:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mygAY-0003kX-2p for guix-patches@gnu.org; Sat, 18 Dec 2021 15:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52607] [PATCH] gnu: Add myrddin. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Dec 2021 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52607 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52607@debbugs.gnu.org Cc: Jorge Acereda , Guix Together , Raghav Gururajan X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163985869214352 (code B ref -1); Sat, 18 Dec 2021 20:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2021 20:18:12 +0000 Received: from localhost ([127.0.0.1]:43955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myg9f-0003jN-Lk for submit@debbugs.gnu.org; Sat, 18 Dec 2021 15:18:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:43740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myg9d-0003jE-WD for submit@debbugs.gnu.org; Sat, 18 Dec 2021 15:18:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myg9d-0006rc-Rr for guix-patches@gnu.org; Sat, 18 Dec 2021 15:18:05 -0500 Received: from mx1.dismail.de ([78.46.223.134]:22647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myg9b-00052t-5w for guix-patches@gnu.org; Sat, 18 Dec 2021 15:18:05 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 595b9728; Sat, 18 Dec 2021 21:17:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=N5hYOSFz+K4kysA/EUTOM zfdLr0GnpL1S0/3XnJdYc4=; b=BSGMz68ebkizlnaW5qWetQVlaOX50I5FYImUY j0l/vpE/BvgkEjiDIhu6qpUlKISYMbW1X4ltxuh8Mr2Ch2tEh0mkD+hNgYCrcS63 Y8CjAPZDCfGXpVn7Lm3NtXGGEXeMxRsMVo3UqD5Nqg9chwXNwksdDswsBKnliC9L Fo+LkiBshhNwCyYvZHsQYzg5/BNDUkCTyJfwq68ISybzzWr4z34qNTlkp5VqHSzq R/vdeAL97YFJEjLimAoONOM6Nb9ADahNiiVDLq20og9yFRXH7bX13VJL13B+9Wl+ uYQi9OBIEO5ZVdggl3vEguKfTX2m3fcf0M9UwkX9Cz0ZhbzWw== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f7803b03; Sat, 18 Dec 2021 21:17:51 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 46d14132; Sat, 18 Dec 2021 21:17:51 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 696ff5da (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 18 Dec 2021 21:17:50 +0100 (CET) Date: Sat, 18 Dec 2021 15:16:36 -0500 Message-Id: <20211218201635.17995-1-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de 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_NONE=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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches From: Guix Together Hi Guixers, This is one of the packages that we worked on in the packaging meetup today. all best, jgart * 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/local.mk b/gnu/local.mk index 76403bbdf9..7eb3eb3d33 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -411,6 +411,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/music.scm \ %D%/packages/musl.scm \ %D%/packages/mtools.scm \ + %D%/packages/myrddin.scm \ %D%/packages/nano.scm \ %D%/packages/ncdu.scm \ %D%/packages/ncurses.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 © 2021 Guix Together +;;; +;;; 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=" ,(cc-for-target)) + (string-append "PREFIX=" %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)))))) + (native-inputs + (list bison pkg-config)) + (home-page "https://myrlang.org") + (synopsis "Systems language that is both powerful and fun to use") + (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 +implementation, and features you may find familiar from languages like +like rust and ocaml. This combination makes Myrddin suitable for anything +ranging from desktop applications, to embedded systems and potentially +even kernel development.") + (license license:expat)))