Subject: bug#56992: closed (Re: bug#56993: [PATCH v1 5/5] gnu: bqn: Add cbqn.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 31 Aug 2022 21:11:03 +0000

Your bug report

#56989: [PATCH v1 3/5] gnu: bqn: Add cbqn-bootstrap.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
56989: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56989
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#56993: [PATCH v1 5/5] gnu: bqn: Add cbqn.
From: Ludovic Courtès <[email-masked]>
To: Christopher Rodriguez <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Wed, 31 Aug 2022 23:10:44 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Christopher,

Christopher Rodriguez <[email-masked]> skribis:

> * gnu/packages/bqn.scm: Create module.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Register module.

I applied the whole series with minor changes: adding newlines in
between definitions, tweaking descriptions, etc.

Thanks!

Ludo’.

Subject: [PATCH v1 3/5] gnu: bqn: Add cbqn-bootstrap.
From: Christopher Rodriguez <[email-masked]>
To: [email-masked]
Cc: Christopher Rodriguez <[email-masked]>
Date: Thu, 4 Aug 2022 22:20:21 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

---
 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