Subject: [bug#77831] [PATCH 1/2] gnu: Add trivial-adjust-simple-array.

From: Simen Endsjø <[email-masked]>
Date: Tue, 15 Apr 2025 22:13:36 +0200

* gnu/packages/lisp-xyz.scm (cl-trivial-adjust-simple-array, ecl-trivial-adjust-simple-array, sbcl-trivial-adjust-simple-array): New variables.
---
 gnu/packages/lisp-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 58e7f948ad..746902097a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -46,6 +46,7 @@
 ;;; Copyright © 2024 Nik Gaffney <[email-masked]>
 ;;; Copyright © 2024 Grigory Shepelev <[email-masked]>
 ;;; Copyright © 2025 Junker <[email-masked]>
+;;; Copyright © 2025 Simen Endsjø <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5697,6 +5698,40 @@ (define-public cl-fad
 (define-public ecl-cl-fad
   (sbcl-package->ecl-package sbcl-cl-fad))
 
+(define-public sbcl-trivial-adjust-simple-array
+  (let ((commit "393d4041410db584d49c17d9d959fca7aeb76dfc"))
+    (package
+      (name "sbcl-trivial-adjust-simple-array")
+      ;; It's currently at 0.0.1, but so is the other commits
+      (version "develop")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://gitlab.com/lockie/trivial-adjust-simple-array")
+               (commit commit)))
+         (file-name (git-file-name name commit))
+         (sha256
+          (base32 "1mxsng80x3m4cf65vfd1q5fx9nlzqckfc7axwvf9fh156rdhhr3p"))))
+      (build-system asdf-build-system/sbcl)
+      (arguments
+       (list
+        #:asd-systems ''("trivial-adjust-simple-array")))
+      (native-inputs
+       (list sbcl sbcl-parachute
+             sbcl-alexandria))
+      (inputs (list))
+      (home-page "https://gitlab.com/lockie/trivial-adjust-simple-array")
+      (synopsis "A tiny utility to change array size ensuring it is simple.")
+      (description "A tiny utility to change array size ensuring it is simple.")
+      (license license:expat))))
+
+(define-public cl-trivial-adjust-simple-array
+  (sbcl-package->cl-source-package sbcl-trivial-adjust-simple-array))
+
+(define-public ecl-trivial-adjust-simple-array
+  (sbcl-package->ecl-package sbcl-trivial-adjust-simple-array))
+
 (define-public sbcl-cl-fast-ecs
   (package
     (name "sbcl-cl-fast-ecs")
-- 
2.49.0