From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 IOLIIPbq82JfIAAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 19:29:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QGGsIPbq82I2CwEAauVa8A (envelope-from ) for ; Wed, 10 Aug 2022 19:29:26 +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 48262C8C1 for ; Wed, 10 Aug 2022 19:29:26 +0200 (CEST) Received: from localhost ([::1]:53238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLpWH-0006e7-Gu for larch@yhetil.org; Wed, 10 Aug 2022 13:29:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLpVu-0006AH-Vk for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLpVu-00045S-Mk for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLpVu-00027G-IY for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v5 3/5] gnu: Add cbqn-bootstrap. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Aug 2022 17:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56989 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56989@debbugs.gnu.org Cc: Christopher Rodriguez Received: via spool by 56989-submit@debbugs.gnu.org id=B56989.16601525168066 (code B ref 56989); Wed, 10 Aug 2022 17:29:02 +0000 Received: (at 56989) by debbugs.gnu.org; 10 Aug 2022 17:28:36 +0000 Received: from localhost ([127.0.0.1]:50656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLpVT-000260-JU for submit@debbugs.gnu.org; Wed, 10 Aug 2022 13:28:35 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]:45982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLpVP-00025M-HJ for 56989@debbugs.gnu.org; Wed, 10 Aug 2022 13:28:32 -0400 Received: by mail-qk1-f169.google.com with SMTP id m20so343088qka.12 for <56989@debbugs.gnu.org>; Wed, 10 Aug 2022 10:28:31 -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=kfaIRr5jt+Wg9wEY+lo7RZ8Iuqz9nm69g2BhGm4T+ps=; b=DqRMLFyoHjrgMpGQ6QGL9KyjTrr9W5U1pPrDZQf+TnI/+txdRhq+j1+Ml+4AV+t4ak ++ZTWMIOmhmsEmNzgnUEXyv2iqf+O1NL04f0r7UwN+wHiJzPA85ZKQi0Ezx8VbM2yldq qhu3ackmURvxD8DXRDZKplFO2RAp3Wv4e4q0Sh9DN3xThqxZicUXvTXznn9+5QIGyPI0 VWX7Tz11Qgn6XXsmNi4C4iqxF0Y7Ue8UbJ0UswMggx7nF2I9E74oEbQG9IoqRtYAlLAj BaXDuwLTul5Rzgq1vc8VzNe49bWCexhxskU7kAtDaYiNQqY9hbR6taPSzmeMPxwiYOyI qVag== 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=kfaIRr5jt+Wg9wEY+lo7RZ8Iuqz9nm69g2BhGm4T+ps=; b=yS68AgoWVYlhfoyNNrjwcJFyupEJ5OZ+5ZNVNrL6ooB7ojcZFid+0yWb1Q1PAJv7jA 1Th8mu6J1iVGlaEduDaPMhs0BF+1NgJldy9wQpPKZJkTkxJzkVsfq8TY7hANJSnL7GJw JBQRFREJuoZrfnQf1eDRkw6ojLoFRFsEQUfjh9aqjn8rD/gPjMO0ib7fzNjRHO3WdiMF M6q5/F4PM4sHsRyrRqFZGMTeiXlzQWCul7V+QEBc+8ZCVAOXwksXmwO5FG8FScmm9uY3 0zvgyVnZEN3Y0QqNyXlRUpx1mDZKZZVEZam3lTli1ooWqVxIJrE2jQmSWN4ltN8Kyh/h B0vQ== X-Gm-Message-State: ACgBeo0R45iozd+6cj2yNTScm++LK8TPjkKC21ANEIeLvLCufGbl1set NpgHqjBdu0kny7qbYE9UZDem57v1Qe0= X-Google-Smtp-Source: AA6agR7BP981Gj8tuxUX2Cu6PLIAxZkrI4xZ5potLVtUipv9lqROXF4aXgvn1iAYs7cXg9HVknFqyQ== X-Received: by 2002:a37:e117:0:b0:6b9:8310:ecd2 with SMTP id c23-20020a37e117000000b006b98310ecd2mr5678111qkm.563.1660152505866; Wed, 10 Aug 2022 10:28:25 -0700 (PDT) Received: from gmail.com ([2601:547:a01:2900::a9b]) by smtp.gmail.com with ESMTPSA id b200-20020ae9ebd1000000b006a6d7c3a82esm229498qkg.15.2022.08.10.10.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 10:28:25 -0700 (PDT) From: Christopher Rodriguez Date: Wed, 10 Aug 2022 13:27:58 -0400 Message-Id: <20220810172800.13189-3-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220810172800.13189-1-yewscion@gmail.com> References: <20220810172800.13189-1-yewscion@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1660152566; 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=kfaIRr5jt+Wg9wEY+lo7RZ8Iuqz9nm69g2BhGm4T+ps=; b=jjoFT096rKiAQv517Scz8AGRbqyGadnSLLqtQQIL8dG7sG0Dt9WBFmA08M74HEkf688YgC ubLUb5KErTilwICg6xpVenK9yuCFVaoDaSk0TiMtlXc9zLKCol8EAIxWue05r2zE2ExiM2 ZnTi87nvqtcyV7o58FBHnUxnq/W4A73ovz66CKnaqKWilUFBoeFRUX7PwS9blVtWO/idZu NXfqgv1lQB9EXdBJCsLZmfpZE5Qd2pOIgfCNP1u91+AzFvCKeONkMo6h9aGJe9ZM6FX621 J9XRygQAMyi5zXV9v2VKm7oZmxeKGnh3E4D/+MwhB2VtcsqDyJodRBm8fdH2eg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660152566; a=rsa-sha256; cv=none; b=qSFfYlcaC8bc6+mTKRhgMHWmNjjphNWYhKYX/yBeCLjjzYQLJJKLy6MMgVA0riFUdGmPGI i38HtwhIuJPS28BVsyb3Odx7BJu1AKZpTWV6lcgSEiCOvro7AFkH9440lb5jN/5NWr+x1y H3d9daDmNol+pIUo/x0CquRgqgMdLCEp6nhXewmHNyTUQBtv+xn+xo+xhmXux4KFeMMJZ8 zmrc6jlaW23Dql7p24FQRDH+4Jz2OCToHNbfNDwWWMxWwJYev1F/svDZqrBe3Y4lA2f+bq LtZDw4iwoHqlJD+eC5fCW41oOljFu8UgVcksA1UltkCHRpIhp2pXqfWosSbR4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DqRMLFyo; 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: 9.11 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DqRMLFyo; 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: 48262C8C1 X-Spam-Score: 9.11 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: bgTPaAdworsw * gnu/packages/bqn.scm: Add cbqn-bootstrap package. --- gnu/packages/bqn.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 3c98102659..61aa37fdf5 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -119,3 +119,43 @@ (define bqn-sources (file-name (git-file-name "bqn-sources" commit)) (sha256 (base32 "0r6pa9lscl2395g4xlvmg90vpdsjzhin4f1r0s7brymmpvmns2yc"))))) +(define cbqn-bootstrap + (let* ((revision "1") + (commit "9c1cbdc99863b1da0116df61cd832137b196dc5c")) + (package + (name "cbqn-bootstrap") + (version (git-version "0" "1" commit)) + (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 + "0w38fhwf20drkyijy6nfnhmc5g5gw0zmzgmy1q605x57znlj85a2")))) + (build-system gnu-build-system) + (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 #+dbqn + "/bin/dbqn ./genRuntime " + #+bqn-sources)))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (mkdir-p (string-append #$output "/bin")) + (chmod "BQN" #o755) + (copy-recursively "BQN" + (string-append #$output + "/bin/bqn"))))))) + (native-inputs (list dbqn clang-toolchain bqn-sources)) + (inputs (list icedtea-8 libffi)) + (synopsis "BQN implementation in C") + (description "The standard implementation of the BQN language, +according to the specification.") + (home-page "https://mlochbaum.github.io/BQN/") + (license license:gpl3)))) -- 2.37.1