Subject: [PATCH]: Add sbcl-history-tree
From: André A. Gomes <[email-masked]>
To: [email-masked]
Date: Mon, 02 Jan 2023 14:06:47 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix,

Happy New Year!

Find the patch attached.  Thanks.

-- 
André A. Gomes
"You cannot even find the ruins..."
From c689f175b22f3a910097a7ef7fd6ca4408c04b8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= <[email-masked]>
Date: Mon, 2 Jan 2023 14:05:31 +0200
Subject: [PATCH] gnu: Add sbcl-history-tree.

* gnu/packages/lisp-xyz.scm (sbcl-history-tree): New variable.
---
 gnu/packages/lisp-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 41 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index f8dbf9e1c8..717895521c 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -23,7 +23,7 @@
 ;;; Copyright © 2020, 2021, 2022 Sharlatan Hellseher <[email-masked]>
 ;;; Copyright © 2021, 2022 Aurora <[email-masked]>
 ;;; Copyright © 2021 Matthew James Kraai <[email-masked]>
-;;; Copyright © 2021, 2022 André A. Gomes <[email-masked]>
+;;; Copyright © 2021, 2022, 2023 André A. Gomes <[email-masked]>
 ;;; Copyright © 2021, 2022 Cage <[email-masked]>
 ;;; Copyright © 2021 Cameron Chaparro <[email-masked]>
 ;;; Copyright © 2021 Charles Jackson <[email-masked]>
@@ -11083,6 +11083,46 @@ (define-public cl-hdf5-cffi
 (define-public ecl-hdf5-cffi
   (sbcl-package->ecl-package sbcl-hdf5-cffi))
 
+(define-public sbcl-history-tree
+  (package
+    (name "sbcl-history-tree")
+    (version "0.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/atlas-engineer/history-tree")
+             (commit version)))
+       (file-name (git-file-name "history-tree" version))
+       (sha256
+        (base32 "0z4mfgswfbpkh496qqk130yk6d0q0q5imqybw9n58aq4ygfhibhz"))))
+    (build-system asdf-build-system/sbcl)
+    (inputs
+     (list
+      sbcl-alexandria
+      sbcl-custom-hash-table
+      sbcl-local-time
+      sbcl-hu.dwim.defclass-star
+      sbcl-trivial-package-local-nicknames))
+    (native-inputs (list sbcl-lisp-unit2))
+    (home-page "https://github.com/atlas-engineer/history-tree")
+    (synopsis "Store the history of a browser's visited paths")
+    (description
+     "This data structure can be used to store the history of visited paths or
+URLs with a file or web browser, in a way that no “forward” element is ever
+forgotten.
+
+The history tree is “global” in the sense that multiple owners (e.g. tabs) can
+have overlapping histories. On top of that, an owner can spawn another one,
+starting from one of its nodes (typically when you open a URL in a new tab).")
+    (license license:bsd-3)))
+
+(define-public cl-history-tree
+  (sbcl-package->cl-source-package sbcl-history-tree))
+
+(define-public ecl-history-tree
+  (sbcl-package->ecl-package sbcl-history-tree))
+
 (define-public sbcl-cl-randist
   (package
     (name "sbcl-cl-randist")
-- 
2.38.1