From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0AHJMjnjt2KtJAEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 06:40:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cDTeMTnjt2K5aAAAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 06:40:25 +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 3EE0B2C879 for ; Sun, 26 Jun 2022 06:40:24 +0200 (CEST) Received: from localhost ([::1]:41626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5K4M-0008M4-Ok for larch@yhetil.org; Sun, 26 Jun 2022 00:40:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5K47-0008L4-Mk for guix-patches@gnu.org; Sun, 26 Jun 2022 00:40:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5K42-0007rZ-A8 for guix-patches@gnu.org; Sun, 26 Jun 2022 00:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5K42-0000Kx-7P for guix-patches@gnu.org; Sun, 26 Jun 2022 00:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55606] [PATCH 2/2] gnu: Add hare. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Jun 2022 04:40:02 +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.16562183681240 (code B ref 55606); Sun, 26 Jun 2022 04:40:02 +0000 Received: (at 55606) by debbugs.gnu.org; 26 Jun 2022 04:39:28 +0000 Received: from localhost ([127.0.0.1]:46512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5K3U-0000Jw-AV for submit@debbugs.gnu.org; Sun, 26 Jun 2022 00:39:28 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:34788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5K3O-0000JS-MV for 55606@debbugs.gnu.org; Sun, 26 Jun 2022 00:39:25 -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-101.mailbox.org (Postfix) with ESMTPS id 4LVymy4v1mz9sTd for <55606@debbugs.gnu.org>; Sun, 26 Jun 2022 06:39:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656218354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kfq1+0JTeX2r3J7E9sqPiD3bpHXcj9+aqSL+O0NrxwQ=; b=kr5NqHWegSTXpO0bipIzJledFpFwywceQIwxZDRnkHbuUMJRGvQGYMX5fYNt9QwLG3dZhq 5NUH5nOF5PrplBulkwTpZX5oJtuwQjvJPNoet4SV382ESE0o9MEv+J0AxdIB5a8+s9Gqba hANWRy5V15K54QBYTc2QjZKNn7NiT/6J0zCXvyRjytL3lxvS3i7xiOW+SYFJ38CLdGerl+ epwLpf8fIA4hSCYuxjOAH6VVGtjS142U5nDwIQncK02Hsh1PktyajlvRqEIP7aT4Jx1nse 6T9N6VNSGKNEAQL7SYwfRzQxID27M25onAp4d+0+ecp2oiwaPZ+sKND1qwpjAg== Date: Sun, 26 Jun 2022 00:39:02 -0400 Message-Id: <20220626043902.3076-2-antero@mailbox.org> In-Reply-To: <20220626043902.3076-1-antero@mailbox.org> References: <20220626043902.3076-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 297c6704efa3076e36e X-MBO-RS-META: bzkf3t3o7qqn9d4w3gqk6ym56wprkqco 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=1656218425; 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-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=Kfq1+0JTeX2r3J7E9sqPiD3bpHXcj9+aqSL+O0NrxwQ=; b=jPE+D/5LSHL31ymk9/SeEVT6TtNsngHmKb84Vg1YDf0ggH5j26FVnFC1LEoFz91xTW4dy8 Xg4s/I21P2spDCZBMAsexwUsujHHMRjjnW7a+wcM68Cj9hGxgaLTyew7+Ej30J+hAbXNza N6ohZH3KzYFIS30/g4HZK/Zbu3uANeaoqnBLA+VPdzkqmTXU7TzMqPl3qiqGAXNpOyLoKc bKEz2AU0BnsRyTsRetV34/sHm2Iw/0aIJc7sqo7xpOTgT7PqvJzWtJCIYY2PyVE6+m5x/f w7Rie2nQR0qyu7HH8Ew8LEbm1qsPjCwhMcQ7OrHrygwd9O0wMgdK/RmfbZj1yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656218425; a=rsa-sha256; cv=none; b=KHQFSK29hO+jqXOpEtTLaJggkvxAmm42CwDfx1rxD4h8Hd9zvRZmyQ1uMYTG1DrQyKCWFN Pz+jV9jZd3TOvT4qwxqXN6Jd2cNjXCmKjIBj8l3CU3uFg0Tu2lCaj2McUGadcetnadPnsE yddiKjmQTx3fR0/+pbdoMQanKJ4ciOFhNmHjmnyNnDD2zCj8kFVa3hLyC5Ph3/dglOJXrS 1SiK6JRHR7rCdmVw/QcvWSCckGnEizq7LkLjGlYYNkyngXy6QxRSNcwy0urcyYzekPbuYo ZS1l0Eo7U2dS8W8j6IIU+6m+rb3IfvGgzeijPOwJ67uWIQts1VEt1WTiwdkluw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=kr5NqHWe; 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.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=kr5NqHWe; 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: 3EE0B2C879 X-Spam-Score: -1.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: SJqye68ZnQsS * gnu/packages/hare.scm (hare): New variable. --- gnu/packages/hare.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/hare.scm b/gnu/packages/hare.scm index a1149499d5..16c7d8e2dd 100644 --- a/gnu/packages/hare.scm +++ b/gnu/packages/hare.scm @@ -64,3 +64,76 @@ (define-public harec 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)))) + +(define-public hare + (let ((commit "19e380ccb7dfe2bcab5f94e6bd03004e3e2c6005") (revision "0")) + (package + (name "hare") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~sircmpwn/hare") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04fk3akj3410f8fxw2ixp6l6f9x54pnnk00c0hx0297p7hdzzzq4")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "BINDIR=" #$output "/bin") + (string-append "MANDIR=" #$output "/share/man") + (string-append "SRCDIR=" #$output "/src") + (string-append "LOCALSRCDIR=" #$output "/src/hare") + (string-append "HAREC=" #$harec "/bin/harec") + (string-append "PLATFORM=" "linux") + (string-append "HAREPATH=" + #$output "/src/hare/stdlib:" + #$output "/src/hare/third-party") + (string-append "ARCH=" + #$(platform-linux-architecture + (lookup-platform-by-target-or-system + (or (%current-target-system) + (%current-system))))) + (string-append "AR=" #$(ar-for-target)) + (string-append "AS=" #$(as-for-target)) + (string-append "LD=" #$(ld-for-target)) + (string-append "QBE=" #$qbe "/bin/qbe") + (string-append "SCDOC=" #$scdoc "/bin/scdoc") + "HARECACHE=.cache" + "BINOUT=.bin") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-failing-tests + (lambda _ + ;; These tests fail due to a NaN-related bug in QBE when + ;; used on glibc. + (substitute* "math/complex/+test.ha" + (("@test (fn (cos|cosh|exp)\\(\\) void =)" _ func) + func)))) + (add-after 'unpack 'patch-makefile + (lambda _ + (substitute* "Makefile" + (("include config.mk") "")))) + (delete 'configure)))) + (native-inputs (list scdoc)) + (inputs (list tzdata)) + (propagated-inputs (list binutils harec qbe)) + (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux")) + (native-search-paths + (list (search-path-specification + (variable "HAREPATH") + (files '("src/hare/stdlib" "src/hare/third-party"))))) + (home-page "https://harelang.org") + (synopsis "Systems programming language") + (description "Hare is a systems programming language that aims to improve +on C while retaining its core philosophy. Its principles are: +@itemize +@item Trust the programmer. +@item Provide tools the programmer may use when they don't trust themselves. +@item Prefer explicit behavior over implicit behavior. +@item A good program must be both correct and simple. +@end itemize") + (license (list license:gpl3 ;compiler and build driver + license:mpl2.0))))) ;standard library -- 2.36.1