AtlatestRepositorycore-channel

core-channel / tree / src / core / packagesdatabases.sgl

1;;; Embedded databases.
2;;;
3;;; sqlite backs Emacs' built-in `sqlite-*` functions, which org-roam, forge and
4;;; friends build on. The `sqlite-autoconf` distribution is used rather than
5;;; the raw source tree because it is the one that ships a `configure` script;
6;;; the phase model here can only run `./configure`.
7(define-library (core packages databases)
8 (import (sigil core)
9 (core build-environments)
10 (sigil env package)
11 (sigil build external))
12 (export sqlite)
13 (begin
14 (define sqlite
15 (package
16 name: "sqlite"
17 version: "3.46.1"
18 source: (external-source
19 location: "https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz"
20 sha256: "67d3fe6d268e6eaddcae3727fce58fcc8e9c53869bdd07a0c61e38ddf2965071")
21 buildenv: core-buildenv
22 phases: (list
23 (external-phase
24 kind: 'configure
25 args: (list "--prefix=${out}"
26 "--disable-shared"
27 "--enable-static"
28 "--disable-readline"))
29 (external-phase kind: 'make)
30 (external-phase kind: 'install))))))