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 AGGTC75+7GKxzwAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 04:21:50 +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 MPK+Cr5+7GIcnAAAG6o9tA (envelope-from ) for ; Fri, 05 Aug 2022 04:21:50 +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 B126D38723 for ; Fri, 5 Aug 2022 04:21:49 +0200 (CEST) Received: from localhost ([::1]:42258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJmyB-0001XN-7h for larch@yhetil.org; Thu, 04 Aug 2022 22:21:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxU-00015l-Sy for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxU-0007lY-Mn for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJmxU-0006N0-HX for guix-patches@gnu.org; Thu, 04 Aug 2022 22:21:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56992] [PATCH v1 3/5] gnu: bqn: Add cbqn-bootstrap. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 02:21:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56992 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56992@debbugs.gnu.org Cc: Christopher Rodriguez X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165966605724395 (code B ref -1); Fri, 05 Aug 2022 02:21:04 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:57 +0000 Received: from localhost ([127.0.0.1]:55518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxM-0006LJ-H0 for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:57174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxJ-0006Kw-Rz for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxJ-00014k-La for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:53 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:36412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxI-0007kc-5l for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:53 -0400 Received: by mail-qt1-x833.google.com with SMTP id h22so1199077qta.3 for ; Thu, 04 Aug 2022 19:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=0ryJG8FKFCMusEEETyBeyPxnRZTPuQN8MFwxZqKJjnE=; b=l8NP9QJ8NzQednffC/gb7KLXtcsGg3zoPgdLrB0KknObwtmfqmYJ9mKs0utGXpg3Un EdAAVq+JGE2610IgP1aK/tQ0ehr0BHh2KHY7cCnzDnt84ZrA0KtXQY5JF+gepfYk5sz7 zmMZ8mGjnsMY5eYumk+0x8jtpvC51Bp4G1bRjHtlFivx3rry/YoUjEuonFCgzdGLdfF1 H8eMigh4xzv6JVluZtXVmdKcGayw9hLvWs7mHzj+vIEIIilKZDnUl8jNR3xpw3kJF9rv Ei/eqYYNVM/OdtlDWKxa2ahsLkmnp50TVcQOVsdFOrupQNgkyl5su/vnLjnmlFnQ85YP dUIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=0ryJG8FKFCMusEEETyBeyPxnRZTPuQN8MFwxZqKJjnE=; b=3GnTfKpECocigcTd6vP9Pc0pnoHv1x0fot16GmnoxZ+dW0Lw7PT/sQb4oNub75R8eH TL243kgbNHTEqWP63oZDscqKWoyW8+O+jnfI3bpO6S8w5oLVsPQvDBKa8knYxedb2ybA wKNDHE1i7CrxNCyYr+CUbHTp4x4YE9FNbKNioE7EppDFaSpOcI/Z/7r5QoXBQPsRyew4 cArHJ57q6blbDQdQdiuBsZ2RdWFR4GneYQiCrAAx00V/ja1VaFArqpZVCY74ZssN4pV9 Bk9vKDaxfhZef2Tr7x9gcm53AXaeivy+fkjD3/0WcOEHut+GfOjhf8eq2fgj6AcLlYiH HQ5A== X-Gm-Message-State: ACgBeo2rWuLkPdenR7I/5ZNZNXLsz1XAimgqmjvW50tEIPoZB4TsKVQt 9qDI0vhMkFNq3JNrJTCyh0Zv2KPTTTH8cA== X-Google-Smtp-Source: AA6agR56D+hAw6XkCrMuh6aWQU8TndroNku16YZEUCfwxffFuYZ28YtODCpd5zmGcg9BbUJqP0pwgg== X-Received: by 2002:a05:622a:1487:b0:31f:4cbf:ba8c with SMTP id t7-20020a05622a148700b0031f4cbfba8cmr4147801qtx.3.1659666050808; Thu, 04 Aug 2022 19:20:50 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id g3-20020a05620a40c300b006b919c6749esm186386qko.91.2022.08.04.19.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:50 -0700 (PDT) From: Christopher Rodriguez Date: Thu, 4 Aug 2022 22:20:21 -0400 Message-Id: <20220805022023.5044-3-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> References: <20220805022023.5044-1-yewscion@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=yewscion@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1659666109; h=from:from:sender:sender: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=0ryJG8FKFCMusEEETyBeyPxnRZTPuQN8MFwxZqKJjnE=; b=p+wLXDpIMlSwk1t/LoA/W5MsVC8DI5eJdc/bQm+Ta2+56+0qJZGAhWjfYNIbU7YNFynZGs PX3fl4D8WwAbc2//h5bOGi6xA4//x8VfOJHOUHAMKEAnPIxTIyrBdHcOaVpO5HeNcIodAD NaiAyMaL5UxjOabGdjSSD2YwQxtucuFbdOvq4jv9CgPpTOAn5mGuq+OEmFxdS59CerUj2G BqUq0nUmorguwPyQVc4Ann7FC1E3BDu3q+tMxFiFPHVovX4Gn51NLhHQM1AqQvNxxVIsmW sF5yGxs0SlOqWLlw9+Wsv/libCvfLZzZa/JKse26ZOxP2Bp3hNLpsrNB4NunPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659666109; a=rsa-sha256; cv=none; b=LyiXKtGFVJRM2hljtnLO7f+hFSoQQwiFXWO3B/KxxnofW2skEEr4PGLWaFQAwbUUYmhKPK fhNW2Ns9k1Ws2J158byTmiqXEmxBS/pB1WbKhEvCNTOZ/QmaCleLH6b7uOLAGzuN/iL1/Y JD+6I5I6wbJhBxQ0RvqhndArfXzzx9hm5xA9f/wan9+2LPXbyVbcypaH+QIHzDeU21wRto LqNN9x+qN2saFZhmrOb0UZlZPFjx8b3H0ME1+tD6oiczVyzQJkVqnZo1nR2uB4PJbz/0D7 uVgwM7DDd8uG6kFaE+BZ+5TgRwUdPNztSMPXOQB8qAkkwW59f2gY5uchMl/yZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=l8NP9QJ8; 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: 5.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=l8NP9QJ8; 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: B126D38723 X-Spam-Score: 5.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: +d94CfCZM01K --- gnu/packages/bqn.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 221ed9eaaa..0e26706476 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -125,3 +125,49 @@ (define bqn-bytecode-sources purposes.") (home-page "https://github.com/mlochbaum/BQN.git") (license license:gpl3)))) +(define cbqn-bootstrap + (let* ((tag "0") + (revision "1") + (commit "88f65850fa6ac28bc50886c5942652f21d5be924") + (hash "0bqwpvzwp2v20k2l725cwxx4fkvisniw9nls3685wd0fa3agpb47") + (version (git-version tag revision commit))) + (package + (name "cbqn-bootstrap") + (version version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dzaima/CBQN") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + hash)))) + (build-system gnu-build-system) + (outputs '("out")) + (arguments + (list #:tests? #f ;Skipping Tests for Bootstrap. + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'generate-bytecode + (lambda* (#:key inputs #:allow-other-keys) + (system (string-append #$(this-package-native-input + "dbqn") + "/bin/dbqn ./genRuntime " + #$(this-package-input + "bqn-bytecode-sources") "/share/")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (mkdir-p (string-append #$output "/bin")) + (chmod "BQN" 493) + (copy-recursively "BQN" + (string-append #$output + "/bin/bqn"))))))) + (native-inputs (list dbqn openjdk17 clang-toolchain)) + (inputs (list bqn-bytecode-sources libffi)) + (synopsis "BQN implementation in C") + (description + "The expected implementation for the BQN language, +according to the official documentation of that specification.") + (home-page "https://mlochbaum.github.io/BQN/") + (license license:gpl3)))) -- 2.37.1