From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OKYNHiy5sWQNvQAASxT56A (envelope-from ) for ; Fri, 14 Jul 2023 23:07:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GA3bHSy5sWShMAEAauVa8A (envelope-from ) for ; Fri, 14 Jul 2023 23:07:56 +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 1477242E16 for ; Fri, 14 Jul 2023 23:07:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail header.b=HmQOc6Cc; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689368876; a=rsa-sha256; cv=none; b=WwKeHsF7AVNXuqBuXM/H4V2EzX8VfpDblyUS89sfdUYCQVMTS7QURk4eIbuIIIp0/4jOCS 1cZnRmTDhmLRxWkvKLNpbeV4yhdPT5k26k1dVAlMBbwkIsPSBOEq6ZyiVRKfvbicudnWKD D9PSlxcTREvlc6JTu5JpNnbOjg5ygZxRDI1X1cGds3V1DfYgjDb8zPdKGA04/P8Sy0OX52 M3VVTxbCbx4d1IlKZBU/+i+inpPGk834Cu6YqbisBuXcC/MF1Aty7lcPDluNOGF5dFZv9L XizI3Ajp9xCgFi93RXp06IsU6mirXCw/RCCTRlj51KShD/euUvhBLQ2avsirfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail header.b=HmQOc6Cc; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689368876; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5qXhnuIynWQbvJyZetjZdEq8YAEs97GVS77FWGvd8rQ=; b=jJXp2yn/Efebs3VQB8PKoWImsIx3CVO9cMRC6ZZulijUuK9HLy9i7xkwOtoDy0j0wPDznb mcpoDSOgwrs1M54ORkbyPZxdnctX3zB7yPNKCzXKrs4oOZdcpSz0nCrrvyoxbflVG6UlEH 2LRccRuXLfqv45NKdQt5DI/p7X2IV1N6HxQRTsEvJge0TLldG9SXJZ+hpwBY+oBeNGvEpM Vn5EHCSKurYdgJwsu04eB6gdDJogi5c1qGwURWqa9SqDnrMQtQVTVFjHUn4zP04Ej5DvXV dBlmX2MuEDjmMgUhielrI/c6DMUEwYy3pn0wT1VLJNJHLJMl/EE5gMKakkKOCA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKQ0X-0006sS-1x; Fri, 14 Jul 2023 17:07:21 -0400 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 1qKQ0V-0006sJ-Fk for guix-devel@gnu.org; Fri, 14 Jul 2023 17:07:19 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKQ0R-0007tN-NB for guix-devel@gnu.org; Fri, 14 Jul 2023 17:07:19 -0400 Date: Fri, 14 Jul 2023 21:06:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1689368830; x=1689628030; bh=5qXhnuIynWQbvJyZetjZdEq8YAEs97GVS77FWGvd8rQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=HmQOc6Cc9jftNbwwUSWTLG9Za2xzHF49QF+Rn/7HSjvnXIJ4msv0UkXZJTa14nal5 e8mnrmob8U3z8rBdhAxNRojXF/gcAYp9JKG60IxceLCHYf8bcpffGU3E8i0K6bvzfx ESH0OIOM7x5nbcQppdFlzZ+QOz0w8g7YTb+Bmxw2csbvTM1lyVM0pqtaCY5NuwH9Rs 76GFWRt2hW714e+Z4DxDsPEXbxPlVc/pq4QDCfLucwBFkyeNn4T2XtvNyAAynmzVU9 mGsLdkChIPwCbFFA4l/15UADWUzT/ha+juz20Nifaem36r4RJovYS7ajEPcecAQHf3 bLtkdFwDIbkUw== To: "guix-devel\\@gnu.org" From: Ekaitz Zarraga Subject: Add hare compiler Message-ID: Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=ekaitz@elenq.tech; helo=mail-4323.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 1477242E16 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -7.33 X-Spam-Score: -7.33 X-TUID: ifX14xfNap4h Hi I made a possible package for the Hare compiler: https://harelang.org/installation/ But I'm not sure how we should handle a couple of things. The dependencies are propagated while maybe we should mention which are the= inputs and set them to be called from the store directly, should we? And also the way they manage to make the configuration for the compiler dri= ver is adding a config.mk file ourselves. I decided to ignore it and add th= e config as environment variables in order to simplify the process but I'm = not sure if you find any other way that fits better with our needs. Also the language is kind of a beta and they don't have a release schedule = yet. Are we ok packaging software in that status? Thanks, Ekaitz Here's the patch if you want to comment on anything else: >From 308b67848e93a25f627dd64e024e9a501979a157 Mon Sep 17 00:00:00 2001 Message-Id: <308b67848e93a25f627dd64e024e9a501979a157.1689368739.git.ekaitz= @elenq.tech> From: Ekaitz Zarraga Date: Fri, 14 Jul 2023 22:52:59 +0200 Subject: [PATCH] gnu: Add hare * gnu/packages/hare.scm (hare, harec): New variable. * gnu/local.mk: Add hare.scm --- gnu/local.mk | 2 + gnu/packages/hare.scm | 104 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 gnu/packages/hare.scm diff --git a/gnu/local.mk b/gnu/local.mk index 06a376a99a..4d1645c595 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -59,6 +59,7 @@ # Copyright =C2=A9 2023 Zheng Junjie <873216071@qq.com> # Copyright =C2=A9 2023 Ivana Drazovic # Copyright =C2=A9 2023 Andy Tai +# Copyright =C2=A9 2023 Ekaitz Zarraga # # This file is part of GNU Guix. # @@ -314,6 +315,7 @@ GNU_SYSTEM_MODULES =3D=09=09=09=09\ %D%/packages/gv.scm=09=09=09=09\ %D%/packages/gxmessage.scm=09=09=09\ %D%/packages/hardware.scm=09=09=09\ + %D%/packages/hare.scm=09=09=09=09\ %D%/packages/haskell.scm=09=09=09\ %D%/packages/haskell-apps.scm=09=09=09\ %D%/packages/haskell-check.scm=09=09\ diff --git a/gnu/packages/hare.scm b/gnu/packages/hare.scm new file mode 100644 index 0000000000..0c65463e92 --- /dev/null +++ b/gnu/packages/hare.scm @@ -0,0 +1,104 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2023 Ekaitz Zarraga +;;; +;;; 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 hare) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system gnu) + #:use-module (gnu packages) + #:use-module (gnu packages c) + #:use-module (gnu packages man)) + +(define-public harec + (let ((revision "1") + (commit "f5da14c17f734f0bba5a741997b79d3e65a87712")) + (package + (name "harec") + (version (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~sircmpwn/harec") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xdf9pdwy5dvxhgvw6hqkpnjl8z76xc413vsnbbqfvwmfing53yn"= )))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'setenv + (lambda _ + (setenv "CC" ,(cc-for-target)))) + (add-after 'configure 'configure-better + (lambda* (#:key outputs #:allow-other-keys) + (invoke "./configure" + (string-append "--prefix=3D" (assoc-ref outputs "o= ut"))))) + (delete 'configure)))) + (inputs (list qbe scdoc)) + (synopsis "Bootstrapping compiler for Hare") + (description "Hare is a systems programming language designed to be +simple, stable, and robust. Hare uses a static type system, manual memory +management, and a minimal runtime. It is well-suited to writing operating +systems, system tools, compilers, networking software, and other low-level= , +high performance tasks.") + (home-page "https://git.sr.ht/~sircmpwn/harec") + (license license:gpl3)))) + + +(define-public hare + (let ((revision "1") + (commit "112b75eb56d98c442094966fe59cbf3cd5feb909")) + (package + (name "hare") + (version (git-version "0.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~sircmpwn/hare") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ilnz56757k4v0ggdc2v4xsjw0c944y8r289nfmqhw4hwzsrvb4j"= )))) + (inputs (list scdoc)) + (propagated-inputs (list qbe harec)) + (build-system gnu-build-system) + (arguments + `(#:make-flags `("HARECACHE=3D./cache" + ,(string-append "PREFIX=3D" (assoc-ref %outputs "= out"))) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'configure-make + (lambda _ + ;; NOTE: We are not really using this because overwriting = it via + ;; `make-flags` is way easier with our tooling. + ;; Maybe we should? + (copy-file "config.example.mk" "config.mk"))) + (delete 'configure)))) + (synopsis "Hare build driver") + (description "Hare is a systems programming language designed to be +simple, stable, and robust. Hare uses a static type system, manual memory +management, and a minimal runtime. It is well-suited to writing operating +systems, system tools, compilers, networking software, and other low-level= , +high performance tasks.") + (home-page "https://git.sr.ht/~sircmpwn/hare") + (license license:gpl3)))) base-commit: 917a299831361f253ea664f009176b4bbe06900a --=20 2.39.2