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 uPifEx3r82I2ewEAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 19:30:05 +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 6KOdEh3r82KHIwEAG6o9tA (envelope-from ) for ; Wed, 10 Aug 2022 19:30:05 +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 E2649D04E for ; Wed, 10 Aug 2022 19:30:04 +0200 (CEST) Received: from localhost ([::1]:53538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLpWs-0006wl-2F for larch@yhetil.org; Wed, 10 Aug 2022 13:30:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLpVv-0006Ah-SS for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLpVv-00045p-K2 for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLpVv-00027V-Fw for guix-patches@gnu.org; Wed, 10 Aug 2022 13:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56989] [PATCH v5 5/5] gnu: Add cbqn. Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Aug 2022 17:29:03 +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.16601525168079 (code B ref 56989); Wed, 10 Aug 2022 17:29:03 +0000 Received: (at 56989) by debbugs.gnu.org; 10 Aug 2022 17:28:36 +0000 Received: from localhost ([127.0.0.1]:50660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLpVU-00026A-Au for submit@debbugs.gnu.org; Wed, 10 Aug 2022 13:28:36 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:38711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLpVR-00025Q-VZ for 56989@debbugs.gnu.org; Wed, 10 Aug 2022 13:28:34 -0400 Received: by mail-qt1-f182.google.com with SMTP id y18so1613738qtv.5 for <56989@debbugs.gnu.org>; Wed, 10 Aug 2022 10:28:33 -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=5fj375X9stxsme5YeiAiutd62xR5MaDBthS7AVjJoPg=; b=oUTZqNrT5+YqZduAjssaEdIvFg/Yrz/M0vg9XnW/+5/Xe2CwWk3mQhgd+1Osio0ybZ Dn+gEehxFcS3WSyqh1PbDT7VzvPNn3OuigKJ0pF+BDPZOYD5uy9x5XokJFhUkXwfaLq4 bO08ZNC0906ddxNmzoPUVyEKs4fGiyavIGeQnAWbYSnGgNMNLkUAKAOa37JGysYAOUzJ NJXpFd3a/buZlLylPxvhKkji24n+fdROZIr21EgOYVTsit1uydeYM5Ii5AADmBJ/uaXA n4wqyT7D9f2djVPhyNfYSGbsA/+fLkg8wMLixoWzGwX1WZuRcZz35fw2YwRaV8/NXxHa B90Q== 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=5fj375X9stxsme5YeiAiutd62xR5MaDBthS7AVjJoPg=; b=y3G46891zlqRA+PjiCtl/V9pQOGomg1DAZNdbKVAcMt/+LwE3f2tWJ9OM92e5zAoWP HHVLRavy+O3AjlIEoHLckXjdcYYn4CWLNmAs7xw5YjIZi8UDLS3vDMCxnzUBKIyjB4fT 8aqYIPReSrzPUxxxhQXp1oOTWfESuUeM3wJhvEZ8PFnUNJ/0YKVKnjB5AmKQFxVU8N75 5CM2DBAgbaTz7vdXHKTegydEM4hWkAFT3NtUmHSmx7hWtwLLjijjxQBOnz0lbL7C2Snk kPWYm2//dcVgcACaBNbkKcZ/K6PX7PD5/g/LuQd/BQdmtntt9if7KxpO2UBbvzytRNPy NARw== X-Gm-Message-State: ACgBeo12DGPCxat+NkGPhLISJ8+YfL7COXnTBKSYGK243VacYqA3i2zo pjvmbW31eUN4lo61Y8L6gqXAeZjrCt8= X-Google-Smtp-Source: AA6agR6BI3YXJS0YrBr9YGoxOrVkxh26iEU5AhpJkF2kErFv+T96iOLY2z/7enrmemd/F4Dmw3xcyg== X-Received: by 2002:ac8:5b96:0:b0:31f:1931:b2b1 with SMTP id a22-20020ac85b96000000b0031f1931b2b1mr25246150qta.17.1660152508240; Wed, 10 Aug 2022 10:28:28 -0700 (PDT) Received: from gmail.com ([2601:547:a01:2900::a9b]) by smtp.gmail.com with ESMTPSA id bb33-20020a05622a1b2100b003422c7ccbc5sm160778qtb.59.2022.08.10.10.28.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 10:28:27 -0700 (PDT) From: Christopher Rodriguez Date: Wed, 10 Aug 2022 13:28:00 -0400 Message-Id: <20220810172800.13189-5-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=1660152605; 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=5fj375X9stxsme5YeiAiutd62xR5MaDBthS7AVjJoPg=; b=RuLr7yMruLx8OjB6gRPGZ6kP04HC0V8Uaggr7HG2Q8VQX9Oa6vrbcZ09A85aa0n+RKkWXy 6nhqxfv0eSnpU3ZUs0KVvpyENEwZOgmRIoqOGoZvxMOwtnQXiXQQYfVboGoNFrGR74qKDl m57untst02dJTaYNC9+mKSvHHQPyW8w43jRhgpBySHMDvjxEu2U1WXrG53dZ9XjMGZ0s0Y HBEXTdbaF3kyE85xhcGwJgqgeSR/jNMsOAGFTYdlQEOjs3sZcOOyl7RhjDmKrdp40cGnG8 qsXE9ec2QJ/C9fI51/lc2jnYbyQs/D9Hc9BNMSe3K2czrbsMXL5e4pHZcnkR+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660152605; a=rsa-sha256; cv=none; b=H55QI40Noyn+HJP5JQfta54fGZ67oCCgBWtzJjF63Kqhc/nnHx32a7qG/VcWdIUPa5OT7v HGxgNn7bWDK4R84cdX/X2PrHKZYRWqKzYlXmirSUeIJ0vNjZos/ogZwLBnU6hAwJmr7anW DPBL5R7348p2myFFfqVOuGq0Eq8wcXKrpurzrLJLT1i0vHThwgofF2BhQiODP++AzG4sV7 VHd/YFd/EY4BHVXZQ9LxLlLarfzxMR3ysfudCoerPXasN02FxpiIQ5i46GMVgOQ/070qXz YUaKOYLgSiIeETdfbXhIjS2t8o/NhIuZQgqDvaJCUm+ijHwty9XKwi+LI0o3iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=oUTZqNrT; 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: 7.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=oUTZqNrT; 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: E2649D04E X-Spam-Score: 7.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: amrOf4/KLFa5 * gnu/packages/bqn.scm: Add cbqn package. --- gnu/packages/bqn.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index a87534fcd5..95bc2f2eab 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -169,3 +169,49 @@ (define singeli-sources (file-name (git-file-name "singeli-sources" commit)) (sha256 (base32 "1rr4l7ijzcg25n2igi1mzya6qllh5wsrf3m5i429rlgwv1fwvfji"))))) +(define-public cbqn + (package + (inherit cbqn-bootstrap) + (name "cbqn") + (outputs '("out" "lib")) + (arguments + (list #:make-flags '(list "shared-o3" "o3n-singeli") + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'link-singeli + (lambda* (#:key inputs #:allow-other-keys) + (symlink #+singeli-sources "Singeli"))) + (add-before 'build 'generate-bytecode + (lambda* (#:key inputs #:allow-other-keys) + (system (string-append #+dbqn + "/bin/dbqn ./genRuntime " + #+bqn-sources)))) + (replace 'check + (lambda* (#:key inputs tests? #:allow-other-keys) + (when tests? + (system (string-append "./BQN -M 1000 \"" + #+bqn-sources + "/test/this.bqn\"")) + (map (lambda (x) + (system (string-append "./BQN ./test/" x + ".bqn"))) + '("cmp" "equal" "copy" "random")) + (system "make -C test/ffi")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((bin (string-append (assoc-ref outputs + "out") + "/bin")) + (lib (string-append (assoc-ref outputs + "lib") + "/lib"))) + (mkdir-p bin) + (copy-recursively "BQN" + (string-append bin "/bqn")) + (install-file "libcbqn.so" lib))))))) + (native-inputs (list dbqn + bqn-sources + singeli-sources + libffi + clang-toolchain + linux-libre-headers)))) -- 2.37.1