Subject: [PATCH 1/5] gnu: Add ruby-sqlite3-1.4.

From: Nicolas Graves <[email-masked]>
Date: Tue, 3 Jun 2025 23:46:28 +0200

* gnu/packages/ruby.scm (ruby-sqlite3-1.4): New variable.
---
 gnu/packages/ruby.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d803d0f796..4b929b5bcb 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11426,6 +11426,32 @@ (define-public ruby-sqlite3
      "https://github.com/sparklemotion/sqlite3-ruby")
     (license license:bsd-3)))
 
+(define-public ruby-sqlite3-1.4
+  (package/inherit ruby-sqlite3
+    (name "ruby-sqlite3")
+    (version "1.4.4")
+    (source
+     (origin
+       (method git-fetch)        ;for tests
+       (uri (git-reference
+             (url "https://github.com/sparklemotion/sqlite3-ruby")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0ngirjbai3f5ki2sf6m4gxbbrjpr3b35bz5nrz1cifyw1jk6a6sr"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments ruby-sqlite3)
+       ((#:tests? #t #t) #f)
+       ((#:phases phases #~%standard-phases)
+        #~(modify-phases #$phases
+            (delete 'relax-requirements)
+            (add-after 'unpack 'fix-version
+              (lambda _
+                (substitute* "sqlite3.gemspec"
+                  (("s\\.version = .*")
+                   (format #f "s.version = ~s~%" #$version)))))))))))
+
 (define-public ruby-shoulda-context
   (package
     (name "ruby-shoulda-context")
-- 
2.49.0