From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yL/NDrJmuGIGlQAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 16:01:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wIXPDbJmuGIfyQAAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 16:01:22 +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 B3F4F1CFDE for ; Sun, 26 Jun 2022 16:01:21 +0200 (CEST) Received: from localhost ([::1]:36492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5SpE-0003jo-0e for larch@yhetil.org; Sun, 26 Jun 2022 10:01:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Sow-0003j0-C7 for guix-patches@gnu.org; Sun, 26 Jun 2022 10:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5Sov-0002pC-SA for guix-patches@gnu.org; Sun, 26 Jun 2022 10:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5Sov-0004di-O5 for guix-patches@gnu.org; Sun, 26 Jun 2022 10:01: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 14:01: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 Cc: paren@disroot.org, me@tobias.gr, maximedevos@telenet.be, liliana.prikler@gmail.com Received: via spool by 55606-submit@debbugs.gnu.org id=B55606.165625201617751 (code B ref 55606); Sun, 26 Jun 2022 14:01:01 +0000 Received: (at 55606) by debbugs.gnu.org; 26 Jun 2022 14:00:16 +0000 Received: from localhost ([127.0.0.1]:48441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5SoB-0004cF-AL for submit@debbugs.gnu.org; Sun, 26 Jun 2022 10:00:15 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:52834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5So7-0004am-L9 for 55606@debbugs.gnu.org; Sun, 26 Jun 2022 10:00:14 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (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 4LWCD31YDzz9sQZ; Sun, 26 Jun 2022 16:00:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656252003; h=from:from: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; bh=m30FbTXR/pKCRL/HX22JKnjW83DEjR87AGHfI999ZDw=; b=W/TtpHqHY8u9ScGovUCVV1jLwKQf9Woa2WD69MCdNGwnDQN9sj3QMeOrI4KSVpqnCnxZ8l as4mnTYQDUOQt5Stmfy3V2z+6kUAZSAeaOK2ka92UDttMh+exw0/pDrzn8xwxsMz1klg3F MTZLK1JXXP02xutxsOjRdUwzdtIEn9/4PM0c97CCy8jsX2X6FPgcnmTtKcx6Xo3kOrTRVo c1rVbNOJbdROhChuVkqP4FMTeOQcJwsDmzTm0XC6MKay19YfOokVgaqMim2GGI7WlHDr5Z DRk+vXM3BbyNgOJK6gySgnk5vjoLA2GhnjwuANxhnyrGdDOsoy6k4YHYyVjhBA== Date: Sun, 26 Jun 2022 09:59:39 -0400 Message-Id: <20220626135940.10504-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: ctdadhsdddcb1fgia7y63fyi15i4go4s X-MBO-RS-ID: 0e1c3f26e32e1cd0461 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=1656252081; h=from:from:sender:sender:reply-to: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=m30FbTXR/pKCRL/HX22JKnjW83DEjR87AGHfI999ZDw=; b=A3d5uDq+aFJTVa7c6LnMFHmyqXpDeQa1SNT5q6U+sBYxaWb4Va5y37YSP+TA3cBFJ4reGA PvI1N49L/8ilPxFW5FPwSc8lVKEP089jgHH9WhfbTsbBHhzvQrONrqaObTlCfcOF2Yx5Gu GNjfiulPTRBzuEZE/O20iuLYo83P092zmLPCJfaByYNzeFcdKPPmKK6wu9tOBNMkSdehPg Oko9xp2EX1chm3lJbIJm7C+7aLsdfEir8RP9KPDLclq8SHpwIcARe6QFtgBHODzFU9e6Yy vuDYJqXeyKn8JxNx2NNmYfsR2lNWF7AA4rS+3mHhnRsoixI1ZavZ3yYlYQ6QOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656252081; a=rsa-sha256; cv=none; b=iuw6iaF0iZ0InSuWpxhjM+lEmP9UTjoIUyyqpqItNeIG+eQNRj79KaYAxWVeBDXNwVsQuJ 6L3raa6+d3R4iYu/F5vvB/0h5bnjEXwwXHwGHidjpzPSJAPjGns0zwt+0lcrcD4arw+YSY 6v6Z2gkPuQCkvP91zklt1rc8wfagfi4Lnd0qMeTy07WBgLLzcyUtaxXKyttUkco9+NnOo8 ajERYUv6tUVDvNvDa/b8EtvZsBxjiqPlwPzdnhrpv6tzl4QaChjLt0dXInqGmMAd1qJjcp 95SfcI46HQpLNLj4zM57q16aBPNPlD9bxrRpsBhqge4f7KY/EJDVKODNOOFF2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="W/TtpHqH"; 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: -1.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="W/TtpHqH"; 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: B3F4F1CFDE X-Spam-Score: -1.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: RS9vGcGXfYOw Resolving the issues mentioned above. * gnu/packages/hare.scm (harec): New variable. --- gnu/packages/hare.scm | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 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..abded91007 --- /dev/null +++ b/gnu/packages/hare.scm @@ -0,0 +1,67 @@ +;;; 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" (which "qbe")) + (apply invoke "./configure" configure-flags)))))) + (native-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, @code{harec} is used as the default +compiler in the @code{hare} build driver.") + (license license:gpl3)))) -- 2.36.1