Subject: [PATCH v5 2/5] gnu: Add bqn-sources.

From: Christopher Rodriguez <[email-masked]>
Date: Wed, 10 Aug 2022 13:27:57 -0400

* gnu/packages/bqn.scm: Add bqn-sources origin definition.
---
 gnu/packages/bqn.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm
index f00392a4f9..3c98102659 100644
--- a/gnu/packages/bqn.scm
+++ b/gnu/packages/bqn.scm
@@ -106,3 +106,16 @@ (define-public dbqn
 implementation of APL by the same author.")
     (home-page "https://github.com/dzaima/BQN")
     (license license:expat))))
+(define bqn-sources
+  ;; Aside from dbqn above, the main bqn repository is used by other
+  ;; implementations as a "known good" set of sources. CBQN uses dbqn to
+  ;; generate an intermediate bytecode for its own compilation.
+    (let ((commit "e219af48401473a7bac49bdd8b89d69082cf5dd8"))
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/mlochbaum/BQN")
+              (commit commit)))
+        (file-name (git-file-name "bqn-sources" commit))
+        (sha256
+         (base32 "0r6pa9lscl2395g4xlvmg90vpdsjzhin4f1r0s7brymmpvmns2yc")))))
-- 
2.37.1