From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iFRhMEDjt2IsNgEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 06:40:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UOxlMEDjt2JNZAAA9RJhRA (envelope-from ) for ; Sun, 26 Jun 2022 06:40:32 +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 44D873C8A7 for ; Sun, 26 Jun 2022 06:40:32 +0200 (CEST) Received: from localhost ([::1]:41612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5K4V-0008LZ-Ee for larch@yhetil.org; Sun, 26 Jun 2022 00:40:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5K47-0008L3-Ma for guix-patches@gnu.org; Sun, 26 Jun 2022 00:40:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5K41-0007rY-PE for guix-patches@gnu.org; Sun, 26 Jun 2022 00:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5K41-0000Kq-MZ for guix-patches@gnu.org; Sun, 26 Jun 2022 00:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55606] [PATCH 1/2] gnu: Add harec. References: <20220524012155.48729-2-antero@mailbox.org> In-Reply-To: <20220524012155.48729-2-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Jun 2022 04:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55606 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55606@debbugs.gnu.org Received: via spool by 55606-submit@debbugs.gnu.org id=B55606.16562183641224 (code B ref 55606); Sun, 26 Jun 2022 04:40:01 +0000 Received: (at 55606) by debbugs.gnu.org; 26 Jun 2022 04:39:24 +0000 Received: from localhost ([127.0.0.1]:46510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5K3P-0000Jg-TY for submit@debbugs.gnu.org; Sun, 26 Jun 2022 00:39:24 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:52828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5K3O-0000JQ-5l for 55606@debbugs.gnu.org; Sun, 26 Jun 2022 00:39:22 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4LVymx4VVzz9sQk for <55606@debbugs.gnu.org>; Sun, 26 Jun 2022 06:39:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656218353; h=from:from: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; bh=way1BjmslFZM4SzX26LKHUrBRnkd9O0P0LRKTxo9pQs=; b=MExnauaMgsjF66MtZzEJlxoPRzeqLLjX0nunVVv+IlkwHkFwDOzIMf4mKfldyQ/oXytWKq 7P4aC+AmjCnhmRdtRv2SOkoHvRIdZ19DGUtcI/oXHXuC4lYTo7JWuzyVA+ycOrbMwlm9OZ nfV8FjeHjILfyXmMsP+PTittbIXdSw2DFga42Jc8Xt4n1SHF3lMl2LatCCEZxJLHXFcGCI sqVfBw23GzHEvHmRNz7/7503tb1ahwFs0pyiPgx7qWmdLYPQMisF72lj0+0I7NpHp0YCQ1 4ydp51BEQUljcibDT5Xr3d4XuDQQyX4Fs/t7rEwmmjTBM5wDvmsL+uqbGGYS6w== Date: Sun, 26 Jun 2022 00:39:01 -0400 Message-Id: <20220626043902.3076-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: f6ezj4wfnmcqrehcwc64exbr7f6kcu98 X-MBO-RS-ID: 69442184ca77d9cbd8a 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" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656218432; h=from:from:sender:sender:reply-to: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: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=way1BjmslFZM4SzX26LKHUrBRnkd9O0P0LRKTxo9pQs=; b=u2yKn8hHQ6SdmZ7A9zmkxuQb+K+vVG/+mmyg5BCbqEsotL0JSZDZdFr2iatFpy92wNI8il 9l8DnWEb+Tov0jYq2UJRPUpM/cYUPsSSVyk+REOraGujn6Dzs/lgLq7nou2VPcimza192r FbdUT3pFiDQjS1RcamUySdvVgHgPbQqcxXvNeyf9wt7yZg/vox+T3Di7+/nyQfz9kcIkvg vhU/haKZTa0yWIOo/2guK1ecuEE5tgTU8Uxd0ikqzLZP1KqXn8/aVBJpilSKZWQo7L8OqB jwCKZP2++Nybn+m/3+YBHwadKeQyeBqxB645tDwrgZ+vRA7h//w8f69b3R5OYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656218432; a=rsa-sha256; cv=none; b=KkRtBvboUXkgAPHHX6kdrPTDf8ndW6QdtFE6T3eej5tFeQlUaoqZz/hcrEO7bYLhQaG8J1 fC4O++6HoyeXT2j6dNUOcdinfIVPMJRB3gngKfMN0/TFGn0MHZzShNm+j40LkEkXELfoZ8 Ft6/wfcS6mL9QpaKBJIsV3m0j+WCoyD9CugeCGh78lF56QsIMysJvjQpQEwzku5O8p8XB+ D6Vsp1NMEmcJ1oKXEb5etYrnYv4sTVffePK3jklNtkZNfK6mcWs+tqozPxaOF3tX3BCU8y ENVdnHjIkPmjx9C6OHlC3+DTFqDXrbkII2VFlUGWGoTbeHXjhHeV8ye7Lg2CYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=MExnauaM; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=MExnauaM; dmarc=pass (policy=none) header.from=gnu.org; 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: 44D873C8A7 X-Spam-Score: -2.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: K15ff6fEzLNJ * gnu/packages/hare.scm (harec): New variable. --- gnu/packages/hare.scm | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 gnu/packages/hare.scm diff --git a/gnu/packages/hare.scm b/gnu/packages/hare.scm new file mode 100644 index 0000000000..a1149499d5 --- /dev/null +++ b/gnu/packages/hare.scm @@ -0,0 +1,66 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 (unmatched parenthesis +;;; Copyright © 2022 Antero Mejr +;;; +;;; 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 (gnu packages base) + #:use-module (gnu packages c) + #:use-module (gnu packages man) + #:use-module (guix build-system gnu) + #:use-module (guix download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix platform) + #:use-module (guix utils)) + +(define-public harec + (let ((commit "bbabe09bddf74bd699f8ad2224fdd6e2eefbd35e") (revision "0")) + (package + (name "harec") + (version (git-version "0.0.0" 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 + "0sa8rjj5w01n55svql8drv761ks6i1bl9q4gj1yzr31dixaf6xvr")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags #~(list (string-append "--prefix=" #$output)) + #:phases #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs + (configure-flags '()) #:allow-other-keys) + (setenv "AR" #$(ar-for-target)) + (setenv "AS" #$(as-for-target)) + (setenv "CC" #$(cc-for-target)) + (setenv "LD" #$(ld-for-target)) + (setenv "QBE" (string-append #$qbe "/bin/qbe")) + (apply invoke "./configure" configure-flags)))))) + (inputs (list qbe)) + (home-page "https://harelang.org") + (synopsis "Hare bootstrap compiler in C") + (description "This package provides @code{harec}, the Hare language's +bootstrap written in C. Currently, the self-hosting @code{harec} rewrite is +incomplete, so this is used as the default compiler in the build driver.") + (license license:gpl3)))) -- 2.36.1