From patchwork Sun Jun 26 13:59:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 3396 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 D997527BBE9; Sun, 26 Jun 2022 15:01:34 +0100 (BST) 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,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 3F42427BBEA for ; Sun, 26 Jun 2022 15:01:34 +0100 (BST) Received: from localhost ([::1]:36492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5SpR-0003jo-DI for patchwork@mira.cbaines.net; Sun, 26 Jun 2022 10:01:33 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches 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))))