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 uFWTHbNmuGJGgQEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 16:01:23 +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 qMmUHLNmuGLlhQAAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 16:01:23 +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 129D61D0D7 for ; Sun, 26 Jun 2022 16:01:23 +0200 (CEST) Received: from localhost ([::1]:36504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5SpF-0003m3-Uu for larch@yhetil.org; Sun, 26 Jun 2022 10:01:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Sow-0003jJ-Ji for guix-patches@gnu.org; Sun, 26 Jun 2022 10:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5Sow-0002pE-6m 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 1o5Sow-0004dq-4V for guix-patches@gnu.org; Sun, 26 Jun 2022 10:01: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 14:01: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 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.165625201917769 (code B ref 55606); Sun, 26 Jun 2022 14:01:02 +0000 Received: (at 55606) by debbugs.gnu.org; 26 Jun 2022 14:00:19 +0000 Received: from localhost ([127.0.0.1]:48443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5SoE-0004cX-Th for submit@debbugs.gnu.org; Sun, 26 Jun 2022 10:00:19 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:37698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5So9-0004ay-1G for 55606@debbugs.gnu.org; Sun, 26 Jun 2022 10:00:16 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::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-201.mailbox.org (Postfix) with ESMTPS id 4LWCD472Xkz9sSB; Sun, 26 Jun 2022 16:00:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656252005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qIpwal3ril4hHNiF5FCuRpouGna4wxUC9m0dpMDeGKI=; b=ThUnhDHIT0K+JCd1OtN+9VfakCv51JVnezmvZojMFgVSlLRcK1jTWRouIHRZc+hcs47syK WvjiPUNDTcHc2yWyK3gk0loWLopABPQ47TH6JDTW6LaWbwvyF3JxYxRTVbaUu2g8baRLAD SdJ2yKyvB3H9iAK/tVX+L5lVS4f7+3rEmBJO91RL3/8C0CW9Qb27GfKJ+v+nxw1XYF91R/ RlPTejWEffgrpKFUMwGiV8sBHSNOhm849Jsde6Q9PippPx+3Dxi8jxnYsofu+NEJcrRbdh ijsfqRYOc3ke1SzgJ7SOi2vMbJbFXQPfsyzssXbmCxpcMdGCD33hAmSTBG0A9Q== Date: Sun, 26 Jun 2022 09:59:40 -0400 Message-Id: <20220626135940.10504-2-antero@mailbox.org> In-Reply-To: <20220626135940.10504-1-antero@mailbox.org> References: <20220626135940.10504-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: d10cc2bc82a75958924 X-MBO-RS-META: etdd3d1659zj9gdaueudefmi8dhcx33i X-Rspamd-Queue-Id: 4LWCD472Xkz9sSB 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=1656252083; 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-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=qIpwal3ril4hHNiF5FCuRpouGna4wxUC9m0dpMDeGKI=; b=Cl8sAN8NpaquLykPkgTSnmooHPnOk6OEo+7JzABRfKcfdkzmgdGplj3qVnNqp5eEjOE40v 1AlSj+RnkEermRsi/JnYyOlzfk8FSKSEEQp/pu4F9fxZvHRdXqRiqvamos3AUrWnjFzw+6 WQPkyEK+QyYzs23ncMM02XypudYxnNt+9rcErr43DwWa/E0FxaRkC0SLEy+StuFLGeeOyL IgZFaK6mobJi4KA5WtJsbKxMqHux48s8lMVCgI6qdJ1u1MLljppwR5DfkDyyl0Fz2GwOpE vpuKJ1hCQP61Oubcrx0I49RzEmanDjW2dM/Y/lXXIMgKaqCd0guv+CKhNCR4dQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656252083; a=rsa-sha256; cv=none; b=Hz8gQsxwEIBlHmvNdvu49j0SXK/DtoatGq0auPZT+EZ67wp/0eEgJUmB50QGC6WoWaYh5d nWupKYLG+NnaLYNoo36jrkqhTkE1HIhGfwULzf5eVDl8uviWeFDI5IxznG+Jfvgvr02cml sZvbK4dpZiTj6tFSbbxsTefaW+mkAX5Aqn+ttQsrzvZqLkLb6c6N+VSbwsCiL125JFxu/Q Kfz4b+9Yifpc4naBppPLG1CXZ6eC74op1/NU2CCpP3yXIMaGmSjgiyA4gIOwNE6xsNNQ5l cn9n/NK2XhSy0GmTyJNeVGxO7UvWKibqG4uTK2IDCXOs9olQmxduhWlAj3NHLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ThUnhDHI; 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.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ThUnhDHI; 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: 129D61D0D7 X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: XKZhFv+S72iv * gnu/packages/hare.scm (hare): New variable. --- gnu/packages/hare.scm | 74 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/hare.scm b/gnu/packages/hare.scm index abded91007..5e51ace67f 100644 --- a/gnu/packages/hare.scm +++ b/gnu/packages/hare.scm @@ -65,3 +65,77 @@ (define-public harec bootstrap written in C. Currently, @code{harec} is used as the default compiler in the @code{hare} 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 #: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") "")))) + (add-before 'build 'set-env + (lambda _ + (setenv "BINDIR" (string-append #$output "/bin")) + (setenv "MANDIR" (string-append #$output "/share/man")) + (setenv "SRCDIR" (string-append #$output "/src")) + (setenv "LOCALSRCDIR" (string-append #$output "/src/hare")) + (setenv "HAREC" (which "harec")) + (setenv "PLATFORM" "linux") + (setenv "HAREPATH" (string-append + #$output "/src/hare/stdlib:" + #$output "/src/hare/third-party")) + (setenv "ARCH" + #$(platform-linux-architecture + (lookup-platform-by-target-or-system + (or (%current-target-system) + (%current-system))))) + (setenv "AR" #$(ar-for-target)) + (setenv "AS" #$(as-for-target)) + (setenv "LD" #$(ld-for-target)) + (setenv "QBE" (which "qbe")) + (setenv "SCDOC" (which "scdoc")) + (setenv "HARECACHE" ".cache") + (setenv "BINOUT" ".bin"))) + (delete 'configure)))) + (native-inputs (list harec qbe scdoc)) + (inputs (list tzdata)) + (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