~ruther/guix-local

7d7b8b6f6820dc2d1e2311a23a04bc27c55d5fc0 — bdunahu 2 months ago c13b024
gnu: Add sdb.

* gnu/packages/databases.scm (sdb): New variable.

Change-Id: I199de01ffb467a3f64b48d5ae42dc5fc18cab3df
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
1 files changed, 42 insertions(+), 0 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +42 -0
@@ 67,6 67,7 @@
;;; Copyright © 2025 Ashvith Shetty <ashvithshetty0010@zohomail.in>
;;; Copyright © 2025 Philippe Swartvagher <phil.swart@gmx.fr>
;;; Copyright © 2025 Simen Endsjø <contact@simendsjo.me>
;;; Copyright © 2025 bdunahu <bdunahu@operationnull.com>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 139,6 140,7 @@
  #:use-module (gnu packages multiprecision)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages networking)
  #:use-module (gnu packages node)
  #:use-module (gnu packages onc-rpc)
  #:use-module (gnu packages openstack)
  #:use-module (gnu packages pantheon)


@@ 5849,6 5851,46 @@ with no external dependencies.  The targets are small apps that would
be blown away by a SQL-DB or an external database server.")
    (license license:expat)))

(define-public sdb
  (package
    (name "sdb")
    (version "2.2.4")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/radareorg/sdb.git")
                     (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "15pc807s2nmhnr3mspyz9h47rkxkv1r07x959ir17v5b6zs7wxvw"))))
    (build-system meson-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'setenv-cc
            (lambda _
              (setenv "CC" #$(cc-for-target))))
          ;; The provided meson.build uses a Makefile in the source root
          ;; to run the tests, but resolves its directory relative to
          ;; the build directory, assuming the build is one level under
          ;; the source tree. This breaks if the build tree is elsewhere.
          (add-before 'check 'set-test-workdir-to-source-root
            (lambda _
              (substitute* "../source/meson.build"
                (("workdir: join_paths.*$")
                 "workdir: meson.project_source_root(),\n")))))))
    (native-inputs
     (list node
           perl
           python-minimal-wrapper))
    (home-page "https://github.com/radareorg/sdb")
    (synopsis "Simple and fast string based key-value database")
    (description "SDB is a simple key/value database based on djb's cdb disk
storage that supports JSON and array introspection.")
    (license license:expat)))

(define-public sequeler
  (package
    (name "sequeler")