mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 12:47:33 -05:00
9b14b26f0a
* gnu/packages/admin.scm (guile3.0-shepherd): Remove variable. * gnu/packages/benchmark.scm (imb-openmpi): Likewise. * gnu/packages/boost.scm (boost-with-python3): Likewise. * gnu/packages/pep.scm (python-pep-adapter)[inputs]: Adjust accordingly. * gnu/packages/cpp.scm (nlohmann-json-cpp): Likewise. * gnu/packages/games.scm (openrct2)[inputs]: Adjust accordingly. * gnu/packages/cups.scm (escpr): Likewise. * gnu/packages/django.scm (python-django-jsonfield): Likewise. * gnu/packages/emacs-xyz.scm (emacs-modus-operandi-theme) (emacs-modus-vivendi-theme): Likewise. * gnu/packages/engineering.scm (kicad-i18l): Likewise. * gnu/packages/enlightenment.scm (enlightenment-wayland): Likewise. * gnu/packages/firmware.scm (opensbi-qemu-virt, opensbi-qemu-sifive-u): Likewise. * gnu/packages/fonts.scm (font-gnu-freefont-ttf, font-open-dyslexic): Likewise. * gnu/packages/game-development.scm (guile3.0-chickadee) (python-sge-pygame): Likewise. * gnu/packages/games.scm (retux)[inputs]: Adjust accordingly. * gnu/packages/gnome-xyz.scm (numix-theme): Likewise. * gnu/packages/gnupg.scm (guile3.0-gcrypt): Likewise. * gnu/packages/gstreamer.scm (gst-transcoder): Likewise. * gnu/packages/gtk.scm (guile3.0-cairo, guile3.0-present, guile3.0-rsvg): Likewise. * gnu/packages/guile-xyz.scm (guile3.0-colorized, guile3.0-commonmark) (guile3.0-config, guile3.0-email, guile3.0-fibers, guile3.0-gi) (guile3.0-hall, guile3.0-hashing, guile3.0-haunt, guile3.0-ics) (guile3.0-irregex, guile3.0-lib, guile3.0-mcron, guile3.0-minikanren) (guile3.0-ncurses, guile3.0-ncurses/gpm, guile3.0-newt, guile3.0-parted) (guile3.0-pfds, guile3.0-picture-language, guile3.0-semver) (guile3.0-simple-zmq, guile3.0-squee, guile3.0-syntax-highlight) (guile3.0-websocket, guile3.0-wisp, guile3.0-xapian): Likewise. * gnu/packages/guile.scm (define-deprecated-guile3.0-package) (guile3.0-json, guile3.0-gdbm-ffi, guile3.0-sqlite3) (guile3.0-bytestructures, guile3.0-git): Likewise. * gnu/packages/haskell-apps.scm (ghc-stylish-haskell): Likewise. * gnu/packages/linux.scm (linux-libre-arm-veyron): Likewise. * gnu/packages/mail.scm (guile3.0-mailutils): Likewise. * gnu/packages/monitoring.scm (python2-graphite-web): Likewise. * gnu/packages/package-management.scm (guile3.0-guix): Likewise. * gnu/packages/package-management.scm (python-conda): Likewise. * gnu/packages/phabricator.scm (libphutil): Likewise. * gnu/packages/plotutils.scm (guile3.0-charting): Likewise. * gnu/packages/python-xyz.scm (python2-smmap2, python-glances) (python-smmap2): Likewise. * gnu/packages/shells.scm (oil-shell): Likewise. * gnu/packages/sqlite.scm (sqlite-with-column-metadata): Likewise. * gnu/packages/ssh.scm (guile3.0-ssh): Likewise. * gnu/packages/terminals.scm (et): Likewise. * gnu/packages/tls.scm (guile3.0-gnutls): Likewise. * gnu/packages/vlang.scm (v): Likewise. * gnu/packages/vpn.scm (wireguard): Likewise. * gnu/packages/web-browsers.scm (next, sbcl-next): Likewise. * gnu/packages/xorg.scm (transset-df): Likewise.
145 lines
6.9 KiB
Scheme
145 lines
6.9 KiB
Scheme
;;; GNU Guix --- Functional package management for GNU
|
|
;;; Copyright © 2013, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
|
|
;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
|
|
;;; Copyright © 2014 Sree Harsha Totakura <sreeharsha@totakura.in>
|
|
;;; Copyright © 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
|
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
|
|
;;; Copyright © 2016 David Craven <david@craven.ch>
|
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
|
;;; Copyright © 2017 Jelle Licht <jlicht@fsfe.org>
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
|
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
|
;;;
|
|
;;; This file is part of GNU Guix.
|
|
;;;
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
;;; under the terms of the GNU General Public License as published by
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
;;; your option) any later version.
|
|
;;;
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;;; GNU General Public License for more details.
|
|
;;;
|
|
;;; You should have received a copy of the GNU General Public License
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
(define-module (gnu packages sqlite)
|
|
#:use-module (gnu packages)
|
|
#:use-module (gnu packages hurd)
|
|
#:use-module (gnu packages readline)
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
#:use-module (guix packages)
|
|
#:use-module (guix download)
|
|
#:use-module (guix build-system gnu)
|
|
#:use-module (guix utils)
|
|
#:use-module (ice-9 match)
|
|
#:use-module (srfi srfi-26))
|
|
|
|
;;; Commentary:
|
|
;;;
|
|
;;; This module has been separated from (gnu packages databases) to reduce the
|
|
;;; number of module references for core packages.
|
|
|
|
(define-public sqlite
|
|
(package
|
|
(name "sqlite")
|
|
(version "3.31.1")
|
|
(source (origin
|
|
(method url-fetch)
|
|
(uri (let ((numeric-version
|
|
(match (string-split version #\.)
|
|
((first-digit other-digits ...)
|
|
(string-append first-digit
|
|
(string-pad-right
|
|
(string-concatenate
|
|
(map (cut string-pad <> 2 #\0)
|
|
other-digits))
|
|
6 #\0))))))
|
|
(string-append "https://sqlite.org/2020/sqlite-autoconf-"
|
|
numeric-version ".tar.gz")))
|
|
(sha256
|
|
(base32
|
|
"1bj936svd8i5g25xd1bj52hj4zca01fgl3sqkj86z9q5pkz4wa32"))))
|
|
(replacement sqlite/fixed)
|
|
(build-system gnu-build-system)
|
|
(inputs `(("readline" ,readline)))
|
|
(native-inputs (if (hurd-target?)
|
|
;; TODO move into origin on the next rebuild cycle.
|
|
`(("hurd-locking-mode.patch"
|
|
,@(search-patches "sqlite-hurd.patch")))
|
|
'()))
|
|
(outputs '("out" "static"))
|
|
(arguments
|
|
`(#:configure-flags
|
|
;; Add -DSQLITE_SECURE_DELETE, -DSQLITE_ENABLE_FTS3,
|
|
;; -DSQLITE_ENABLE_UNLOCK_NOTIFY and -DSQLITE_ENABLE_DBSTAT_VTAB
|
|
;; to CFLAGS. GNU Icecat will refuse to use the system SQLite
|
|
;; unless these options are enabled.
|
|
(list (string-append "CFLAGS=-O2 -DSQLITE_SECURE_DELETE "
|
|
"-DSQLITE_ENABLE_FTS3 "
|
|
"-DSQLITE_ENABLE_UNLOCK_NOTIFY "
|
|
"-DSQLITE_ENABLE_DBSTAT_VTAB "
|
|
;; Column metadata is required by GNU Jami and Qt, et.al.
|
|
"-DSQLITE_ENABLE_COLUMN_METADATA"))
|
|
#:phases (modify-phases %standard-phases
|
|
;; TODO: remove in the next rebuild cycle
|
|
,@(if (hurd-target?)
|
|
`((add-after 'unpack 'patch-sqlite/hurd
|
|
(lambda* (#:key inputs native-inputs
|
|
#:allow-other-keys)
|
|
(let ((patch (assoc-ref
|
|
(if ,(%current-target-system)
|
|
native-inputs
|
|
inputs)
|
|
"hurd-locking-mode.patch")))
|
|
(invoke "patch" "-p1" "--force" "-i" patch)))))
|
|
'())
|
|
(add-after 'install 'move-static-library
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
(static (assoc-ref outputs "static"))
|
|
(source (string-append out "/lib/libsqlite3.a")))
|
|
(mkdir-p (string-append static "/lib"))
|
|
(link source (string-append static "/lib/libsqlite3.a"))
|
|
(delete-file source)
|
|
|
|
;; Remove reference to the static library from the .la file
|
|
;; so that Libtool looks for it in the usual places.
|
|
(substitute* (string-append out "/lib/libsqlite3.la")
|
|
(("^old_library=.*")
|
|
"old_library=''\n"))
|
|
#t))))))
|
|
(home-page "https://www.sqlite.org/")
|
|
(synopsis "The SQLite database management system")
|
|
(description
|
|
"SQLite is a software library that implements a self-contained, serverless,
|
|
zero-configuration, transactional SQL database engine. SQLite is the most
|
|
widely deployed SQL database engine in the world. The source code for SQLite
|
|
is in the public domain.")
|
|
(license license:public-domain)))
|
|
|
|
(define-public sqlite/fixed
|
|
(package
|
|
(inherit sqlite)
|
|
(version "3.32.3")
|
|
(source (origin
|
|
(method url-fetch)
|
|
(uri (let ((numeric-version
|
|
(match (string-split version #\.)
|
|
((first-digit other-digits ...)
|
|
(string-append first-digit
|
|
(string-pad-right
|
|
(string-concatenate
|
|
(map (cut string-pad <> 2 #\0)
|
|
other-digits))
|
|
6 #\0))))))
|
|
(string-append "https://sqlite.org/2020/sqlite-autoconf-"
|
|
numeric-version ".tar.gz")))
|
|
(sha256
|
|
(base32
|
|
"0rlbaq177gcgk5dswd3akbhv2nvvzljrbhgy18hklbhw7h90f5d3"))))))
|