From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 yNRbFuABuGIw0gAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 08:51:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OLxpFeABuGJyOAEAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 08:51:12 +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 B69453E9AA for ; Sun, 26 Jun 2022 08:51:11 +0200 (CEST) Received: from localhost ([::1]:55506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5M6w-0006YP-Ib for larch@yhetil.org; Sun, 26 Jun 2022 02:51:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5M6o-0006Y4-2R for guix-patches@gnu.org; Sun, 26 Jun 2022 02:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5M6n-0003Sf-Ok for guix-patches@gnu.org; Sun, 26 Jun 2022 02:51:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5M6n-0003wK-LT for guix-patches@gnu.org; Sun, 26 Jun 2022 02:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55606] [PATCH 1/2] gnu: Add harec. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Jun 2022 06:51: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: Antero Mejr , 55606@debbugs.gnu.org Cc: "\(" , Tobias Geerinckx-Rice , Maxime Devos Received: via spool by 55606-submit@debbugs.gnu.org id=B55606.165622625015127 (code B ref 55606); Sun, 26 Jun 2022 06:51:01 +0000 Received: (at 55606) by debbugs.gnu.org; 26 Jun 2022 06:50:50 +0000 Received: from localhost ([127.0.0.1]:46597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5M6Y-0003vr-AH for submit@debbugs.gnu.org; Sun, 26 Jun 2022 02:50:49 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5M6T-0003va-Uv for 55606@debbugs.gnu.org; Sun, 26 Jun 2022 02:50:44 -0400 Received: by mail-ed1-f67.google.com with SMTP id cf14so8873747edb.8 for <55606@debbugs.gnu.org>; Sat, 25 Jun 2022 23:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=d+Ry4JhjlUMDfmHDcxvHMTfP6w0iwB1roRzePaKZU70=; b=IOtPxsxcpwRuVi9G2X43KgmbIrJSL4LSBNjOfu2UGawUULt7ZlSFsNSZ4Y87cLZHns eJIoxDHD4YErZG3BWJHvWqwSjd0/QnKomQkwGu/+CFf/xPkl2k8o0a35Y2JcJpuXtH21 27jTisPdJ1c8QAl6Xes/jTeUpY1g2fRQbhghR3UtOIXZGDzb09kF23JhDy1CuwC2EDrB 4UCKk3/5SA4VTkHmYWwJZevbp8yfQ+2LBXj6H9ja12dUGJGD21WJ5A+XwTed+i9CFP9E cFlsEDCpSqFQHfRLGvV2aVwYN2klUDBEaZ6/FtMLqMt2yKjO2dYTdLZgGh8L4ESOBdf6 KzMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=d+Ry4JhjlUMDfmHDcxvHMTfP6w0iwB1roRzePaKZU70=; b=n41CsWTAYkPAt3so88XF/ulO0lnAol69XYB7NcTd52IbpLBCybnE1R3g6zMnB9OuED XNNgJuHIRKjNskF0EfkGdlUdpoeXLz8N0/nyjGIg79MVnt7Xlk/XK0r/0qvM5LJLVzVF HdQgMBftztW1Mmb3SfYhB4JERDiAFFdPCL6TEv62/KIdUMtJlmXR94xSJTCjBVuYflv4 5echtpgxVf9twlX9SDogjeM+aKsDpNh4CiLOXE7vUWs9MDH5dYHX41439qSKq8L8waip p9BGzcvw3nblFQ0lw8JgF9m/A4vDKVhPutmdrgG17stVmiGM6bzQQ4ZOcVqEIoO39Tmc WIiQ== X-Gm-Message-State: AJIora8J8zge2wq52HUwZWPH4xE9YqrE3GqodRlXYei1ZIX9CrD0TSkM MNxEVxNeCyUJDngOjU63GSY= X-Google-Smtp-Source: AGRyM1tTP40bCoRjlxxLu8gXgNxOQ03GZYBfONfJML9xdyHsKqg6pjyPTpq+NIad8mlUZLYBYMQOaQ== X-Received: by 2002:aa7:c14f:0:b0:435:7b75:fd06 with SMTP id r15-20020aa7c14f000000b004357b75fd06mr9399941edp.352.1656226234679; Sat, 25 Jun 2022 23:50:34 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id i21-20020a17090639d500b006fe98fb9523sm3437770eje.129.2022.06.25.23.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 23:50:34 -0700 (PDT) Message-ID: <83e1d5b4523b9ecb6ca2540fe3fa7866425118ff.camel@gmail.com> From: Liliana Marie Prikler Date: Sun, 26 Jun 2022 08:50:32 +0200 In-Reply-To: <20220626043902.3076-1-antero@mailbox.org> References: <20220626043902.3076-1-antero@mailbox.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-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=1656226271; 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: 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=d+Ry4JhjlUMDfmHDcxvHMTfP6w0iwB1roRzePaKZU70=; b=REVsfB8U0SEy5I+Oe7zvzaAa5s6ef4n14QloXg42paDlMMYUlJ/K9uZh1MAE3Sd3LaSnAb 38qzaS1ymWC1ebFkuj1tdqxP2YBW6lAEdp+maWQUlPL86Q4DqVJxMsNVEmDsm2zro2Bi3U DYEbP5O/lAoQrbotJ4ZF/TvmFO5yOpyoeJ2I3EfhiyCNEWwtD+959/3nPsqvpoZJxyPX0E WtYYwc3pefdB9di2QxZlNml21dowgXDzCgabVdTXZnUmU6VYu1ovax4SBW4CDCLu+zfFjP Tb19ip/tkd9OC8EZ6qI+GfZYN3rqVf836hHYL2iPgp14Mnsbs3dBkZ1LQId7nQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656226271; a=rsa-sha256; cv=none; b=KGFkQsRq1/y/Z5Vtd6txvMaALO6ps4YhZHLJTKmTaQXkHvdIIyzROgH14EugA1ZigotC4W g6nQMQj+ElKzn0SocNKQU6maIslcneGdMDT/S+aE8bDlBK8uMFRRpQqMErv/VE+gHLhLAG BCDLnRY1t4vLCbAKcDL0mQtty+htXT8f13IPu+Nr5a1ZAyThS6bT8fYco+b0wlebnGpnO1 D/Qrawq458ScdTWPA228HvoTqBDD11T6bjTNIdOl4qdAd1P1Y9ocCZwTNTBq9ahxS14sAU t9vYK0lYPeJ9vZVWP9Qh91/empSWkSSdTgEyKOWC7dqAiws4u3JvCWNqyjXH7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IOtPxsxc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 6.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IOtPxsxc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: B69453E9AA X-Spam-Score: 6.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: r3Lo8Nc160fR Hi, added the others back to CC; don't forget to set those when using guix send-email. Am Sonntag, dem 26.06.2022 um 00:39 -0400 schrieb Antero Mejr: > * 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")) Despite what (guix style) may tell you, revision goes to an extra line. > +    (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")) Should be (which "qbe"), or some elaborate search-input-file. Also qbe should be a native input. I do wonder if some of those get embedded into the compiler or how they're supposed to be used (outside of build time); if you find a place where harec invokes qbe, you'd need to patch that in the source. > +                              (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.") I don't see why it's necessary to state that harec can't self-host yet. We would need to bootstrap it from C anyways, so having this architecture in place actually makes things simpler. > +      (license license:gpl3)))) Cheers