diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2024-12-26 20:31:14 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-01-06 12:19:32 +0200 |
| commit | ab643b2a20a69045880db8b8b50dfcfabecb274f (patch) | |
| tree | 107ca23ba119e7df25e25315c620af285203466d /gnu/packages/crates-database.scm | |
| parent | fe23c6bb80ed675d28b869bb7f7b9248a57b8640 (diff) | |
gnu: rust-rusqlite: Move to (gnu packages crates-database).
* gnu/packages/crates-io.scm (rust-rusqlite-0.32, rust-rusqlite-0.31,
rust-rusqlite-0.30, rust-rusqlite-0.29, rust-rusqlite-0.26,
rust-rusqlite-macros-0.3, rust-rusqlite-macros-0.2,
rust-rusqlite-macros-0.1): Move from here ...
* gnu/packages/crates-database.scm: ... to here.
* gnu/local.mk (GNU_SYSTEM_MODULES): Register new file.
Change-Id: Ibdfc2d09e9ced422572041ef0fbcf0d57fb685fb
Diffstat (limited to 'gnu/packages/crates-database.scm')
| -rw-r--r-- | gnu/packages/crates-database.scm | 264 |
1 files changed, 264 insertions, 0 deletions
diff --git a/gnu/packages/crates-database.scm b/gnu/packages/crates-database.scm new file mode 100644 index 00000000000..a7641f8bec9 --- /dev/null +++ b/gnu/packages/crates-database.scm | |||
| @@ -0,0 +1,264 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr> | ||
| 3 | ;;; Copyright © 2021, 2023, 2024 Efraim Flashner <efraim@flashner.co.il> | ||
| 4 | ;;; | ||
| 5 | ;;; This file is part of GNU Guix. | ||
| 6 | ;;; | ||
| 7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 8 | ;;; under the terms of the GNU General Public License as published by | ||
| 9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 10 | ;;; your option) any later version. | ||
| 11 | ;;; | ||
| 12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | ;;; GNU General Public License for more details. | ||
| 16 | ;;; | ||
| 17 | ;;; You should have received a copy of the GNU General Public License | ||
| 18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | ;;; | ||
| 21 | ;;; Please: Try to add new module packages in alphabetic order. | ||
| 22 | ;;; | ||
| 23 | |||
| 24 | (define-module (gnu packages crates-database) | ||
| 25 | #:use-module (guix build-system cargo) | ||
| 26 | #:use-module (guix download) | ||
| 27 | #:use-module ((guix licenses) #:prefix license:) | ||
| 28 | #:use-module (guix packages) | ||
| 29 | #:use-module (guix utils) | ||
| 30 | #:use-module (gnu packages crates-io) | ||
| 31 | #:use-module (gnu packages sqlite)) | ||
| 32 | |||
| 33 | (define-public rust-rusqlite-0.32 | ||
| 34 | (package | ||
| 35 | (name "rust-rusqlite") | ||
| 36 | (version "0.32.1") | ||
| 37 | (source | ||
| 38 | (origin | ||
| 39 | (method url-fetch) | ||
| 40 | (uri (crate-uri "rusqlite" version)) | ||
| 41 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 42 | (sha256 | ||
| 43 | (base32 "0vlx040bppl414pbjgbp7qr4jdxwszi9krx0m63zzf2f2whvflvp")))) | ||
| 44 | (build-system cargo-build-system) | ||
| 45 | (arguments | ||
| 46 | `(#:cargo-inputs | ||
| 47 | (("rust-bitflags" ,rust-bitflags-2) | ||
| 48 | ("rust-chrono" ,rust-chrono-0.4) | ||
| 49 | ("rust-csv" ,rust-csv-1) | ||
| 50 | ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) | ||
| 51 | ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) | ||
| 52 | ("rust-hashlink" ,rust-hashlink-0.9) | ||
| 53 | ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.30) | ||
| 54 | ("rust-rusqlite-macros" ,rust-rusqlite-macros-0.3) | ||
| 55 | ("rust-serde-json" ,rust-serde-json-1) | ||
| 56 | ("rust-smallvec" ,rust-smallvec-1) | ||
| 57 | ("rust-time" ,rust-time-0.3) | ||
| 58 | ("rust-url" ,rust-url-2) | ||
| 59 | ("rust-uuid" ,rust-uuid-1)) | ||
| 60 | #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) | ||
| 61 | ("rust-doc-comment" ,rust-doc-comment-0.3) | ||
| 62 | ("rust-lazy-static" ,rust-lazy-static-1) | ||
| 63 | ("rust-regex" ,rust-regex-1) | ||
| 64 | ("rust-tempfile" ,rust-tempfile-3) | ||
| 65 | ("rust-unicase" ,rust-unicase-2) | ||
| 66 | ("rust-uuid" ,rust-uuid-1)))) | ||
| 67 | (inputs (list sqlite)) | ||
| 68 | (home-page "https://github.com/rusqlite/rusqlite") | ||
| 69 | (synopsis "Wrapper for SQLite") | ||
| 70 | (description "This crate provides a wrapper for SQLite.") | ||
| 71 | (license license:expat))) | ||
| 72 | |||
| 73 | (define-public rust-rusqlite-0.31 | ||
| 74 | (package | ||
| 75 | (inherit rust-rusqlite-0.32) | ||
| 76 | (name "rust-rusqlite") | ||
| 77 | (version "0.31.0") | ||
| 78 | (source | ||
| 79 | (origin | ||
| 80 | (method url-fetch) | ||
| 81 | (uri (crate-uri "rusqlite" version)) | ||
| 82 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 83 | (sha256 | ||
| 84 | (base32 "1bic69apqidimqf8gm80b98a832qzl9x6ns8myzah4yjg2ifnf5q")))) | ||
| 85 | (arguments | ||
| 86 | `(#:cargo-inputs | ||
| 87 | (("rust-bitflags" ,rust-bitflags-2) | ||
| 88 | ("rust-chrono" ,rust-chrono-0.4) | ||
| 89 | ("rust-csv" ,rust-csv-1) | ||
| 90 | ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) | ||
| 91 | ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) | ||
| 92 | ("rust-hashlink" ,rust-hashlink-0.9) | ||
| 93 | ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.28) | ||
| 94 | ("rust-rusqlite-macros" ,rust-rusqlite-macros-0.2) | ||
| 95 | ("rust-serde-json" ,rust-serde-json-1) | ||
| 96 | ("rust-smallvec" ,rust-smallvec-1) | ||
| 97 | ("rust-time" ,rust-time-0.3) | ||
| 98 | ("rust-url" ,rust-url-2) | ||
| 99 | ("rust-uuid" ,rust-uuid-1)) | ||
| 100 | #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) | ||
| 101 | ("rust-doc-comment" ,rust-doc-comment-0.3) | ||
| 102 | ("rust-lazy-static" ,rust-lazy-static-1) | ||
| 103 | ("rust-regex" ,rust-regex-1) | ||
| 104 | ("rust-tempfile" ,rust-tempfile-3) | ||
| 105 | ("rust-unicase" ,rust-unicase-2) | ||
| 106 | ("rust-uuid" ,rust-uuid-1)))))) | ||
| 107 | |||
| 108 | (define-public rust-rusqlite-0.30 | ||
| 109 | (package | ||
| 110 | (inherit rust-rusqlite-0.31) | ||
| 111 | (name "rust-rusqlite") | ||
| 112 | (version "0.30.0") | ||
| 113 | (source | ||
| 114 | (origin | ||
| 115 | (method url-fetch) | ||
| 116 | (uri (crate-uri "rusqlite" version)) | ||
| 117 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 118 | (sha256 | ||
| 119 | (base32 "0kgjk7h53wp8k2di2j83ivf50f0bk6rg7bq8j36ygxb42lb4d057")))) | ||
| 120 | (arguments | ||
| 121 | `(#:cargo-inputs | ||
| 122 | (("rust-bitflags" ,rust-bitflags-2) | ||
| 123 | ("rust-chrono" ,rust-chrono-0.4) | ||
| 124 | ("rust-csv" ,rust-csv-1) | ||
| 125 | ("rust-fallible-iterator" ,rust-fallible-iterator-0.3) | ||
| 126 | ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) | ||
| 127 | ("rust-hashlink" ,rust-hashlink-0.8) | ||
| 128 | ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.27) | ||
| 129 | ("rust-rusqlite-macros" ,rust-rusqlite-macros-0.1) | ||
| 130 | ("rust-serde-json" ,rust-serde-json-1) | ||
| 131 | ("rust-smallvec" ,rust-smallvec-1) | ||
| 132 | ("rust-time" ,rust-time-0.3) | ||
| 133 | ("rust-url" ,rust-url-2) | ||
| 134 | ("rust-uuid" ,rust-uuid-1)) | ||
| 135 | #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1) | ||
| 136 | ("rust-doc-comment" ,rust-doc-comment-0.3) | ||
| 137 | ("rust-lazy-static" ,rust-lazy-static-1) | ||
| 138 | ("rust-regex" ,rust-regex-1) | ||
| 139 | ("rust-tempfile" ,rust-tempfile-3) | ||
| 140 | ("rust-unicase" ,rust-unicase-2) | ||
| 141 | ("rust-uuid" ,rust-uuid-1)))))) | ||
| 142 | |||
| 143 | (define-public rust-rusqlite-0.29 | ||
| 144 | (package | ||
| 145 | (inherit rust-rusqlite-0.30) | ||
| 146 | (name "rust-rusqlite") | ||
| 147 | (version "0.29.0") | ||
| 148 | (source (origin | ||
| 149 | (method url-fetch) | ||
| 150 | (uri (crate-uri "rusqlite" version)) | ||
| 151 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 152 | (sha256 | ||
| 153 | (base32 | ||
| 154 | "1wj12rmwa8g0bfhsk307fl84k0xcw8ji872xx3k447apdl1rv6sl")))) | ||
| 155 | (arguments | ||
| 156 | `(#:cargo-inputs | ||
| 157 | (("rust-bitflags" ,rust-bitflags-2) | ||
| 158 | ("rust-chrono" ,rust-chrono-0.4) | ||
| 159 | ("rust-csv" ,rust-csv-1) | ||
| 160 | ("rust-fallible-iterator" ,rust-fallible-iterator-0.2) | ||
| 161 | ("rust-fallible-streaming-iterator" ,rust-fallible-streaming-iterator-0.1) | ||
| 162 | ("rust-hashlink" ,rust-hashlink-0.8) | ||
| 163 | ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.26) | ||
| 164 | ("rust-serde-json" ,rust-serde-json-1) | ||
| 165 | ("rust-smallvec" ,rust-smallvec-1) | ||
| 166 | ("rust-time" ,rust-time-0.3) | ||
| 167 | ("rust-url" ,rust-url-2) | ||
| 168 | ("rust-uuid" ,rust-uuid-1)) | ||
| 169 | #:cargo-development-inputs | ||
| 170 | (("rust-bencher" ,rust-bencher-0.1) | ||
| 171 | ("rust-doc-comment" ,rust-doc-comment-0.3) | ||
| 172 | ("rust-lazy-static" ,rust-lazy-static-1) | ||
| 173 | ("rust-regex" ,rust-regex-1) | ||
| 174 | ("rust-tempfile" ,rust-tempfile-3) | ||
| 175 | ("rust-unicase" ,rust-unicase-2) | ||
| 176 | ("rust-uuid" ,rust-uuid-1)))))) | ||
| 177 | |||
| 178 | (define-public rust-rusqlite-0.26 | ||
| 179 | (package | ||
| 180 | (inherit rust-rusqlite-0.29) | ||
| 181 | (name "rust-rusqlite") | ||
| 182 | (version "0.26.1") | ||
| 183 | (source | ||
| 184 | (origin | ||
| 185 | (method url-fetch) | ||
| 186 | (uri (crate-uri "rusqlite" version)) | ||
| 187 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 188 | (sha256 | ||
| 189 | (base32 "19sh4nnw1i7a6wacqllz20qpqpdj96jsg3dzaq61cwmd3ywv10la")))) | ||
| 190 | (arguments | ||
| 191 | `(#:skip-build? #t | ||
| 192 | #:cargo-inputs | ||
| 193 | (("rust-bitflags" ,rust-bitflags-1) | ||
| 194 | ("rust-byteorder" ,rust-byteorder-1) | ||
| 195 | ("rust-chrono" ,rust-chrono-0.4) | ||
| 196 | ("rust-csv" ,rust-csv-1) | ||
| 197 | ("rust-fallible-iterator" ,rust-fallible-iterator-0.2) | ||
| 198 | ("rust-fallible-streaming-iterator" | ||
| 199 | ,rust-fallible-streaming-iterator-0.1) | ||
| 200 | ("rust-hashlink" ,rust-hashlink-0.7) | ||
| 201 | ("rust-lazy-static" ,rust-lazy-static-1) | ||
| 202 | ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.23) | ||
| 203 | ("rust-memchr" ,rust-memchr-2) | ||
| 204 | ("rust-serde-json" ,rust-serde-json-1) | ||
| 205 | ("rust-smallvec" ,rust-smallvec-1) | ||
| 206 | ("rust-time" ,rust-time-0.3) | ||
| 207 | ("rust-url" ,rust-url-2) | ||
| 208 | ("rust-uuid" ,rust-uuid-0.8)))))) | ||
| 209 | |||
| 210 | (define-public rust-rusqlite-macros-0.3 | ||
| 211 | (package | ||
| 212 | (name "rust-rusqlite-macros") | ||
| 213 | (version "0.3.0") | ||
| 214 | (source | ||
| 215 | (origin | ||
| 216 | (method url-fetch) | ||
| 217 | (uri (crate-uri "rusqlite-macros" version)) | ||
| 218 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 219 | (sha256 | ||
| 220 | (base32 "0i8fiv3jqwjcq2rdbwd5wycvh6fyfrw0y2wazinr2wpicifmxp7c")))) | ||
| 221 | (build-system cargo-build-system) | ||
| 222 | (arguments | ||
| 223 | `(#:cargo-inputs (("rust-fallible-iterator" ,rust-fallible-iterator-0.3) | ||
| 224 | ("rust-litrs" ,rust-litrs-0.4) | ||
| 225 | ("rust-sqlite3-parser" ,rust-sqlite3-parser-0.13)))) | ||
| 226 | (home-page "https://github.com/rusqlite/rusqlite") | ||
| 227 | (synopsis "Private implementation detail of rusqlite crate") | ||
| 228 | (description "This package provides a private implementation detail of the | ||
| 229 | @code{rusqlite} crate.") | ||
| 230 | (license license:expat))) | ||
| 231 | |||
| 232 | (define-public rust-rusqlite-macros-0.2 | ||
| 233 | (package | ||
| 234 | (inherit rust-rusqlite-macros-0.3) | ||
| 235 | (name "rust-rusqlite-macros") | ||
| 236 | (version "0.2.0") | ||
| 237 | (source | ||
| 238 | (origin | ||
| 239 | (method url-fetch) | ||
| 240 | (uri (crate-uri "rusqlite-macros" version)) | ||
| 241 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 242 | (sha256 | ||
| 243 | (base32 "07y5887q4via4k7hdfxh61nmcwwz8r0bqlgxrk1p177lrkgz8cdp")))) | ||
| 244 | (arguments | ||
| 245 | `(#:cargo-inputs (("rust-fallible-iterator" ,rust-fallible-iterator-0.3) | ||
| 246 | ("rust-litrs" ,rust-litrs-0.4) | ||
| 247 | ("rust-sqlite3-parser" ,rust-sqlite3-parser-0.12)))))) | ||
| 248 | |||
| 249 | (define-public rust-rusqlite-macros-0.1 | ||
| 250 | (package | ||
| 251 | (inherit rust-rusqlite-macros-0.2) | ||
| 252 | (name "rust-rusqlite-macros") | ||
| 253 | (version "0.1.0") | ||
| 254 | (source | ||
| 255 | (origin | ||
| 256 | (method url-fetch) | ||
| 257 | (uri (crate-uri "rusqlite-macros" version)) | ||
| 258 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 259 | (sha256 | ||
| 260 | (base32 "0bbgnp7pgk358js63666ix6a9p4fr4lgigaaf4av3aj45qksi4ix")))) | ||
| 261 | (arguments | ||
| 262 | `(#:cargo-inputs (("rust-fallible-iterator" ,rust-fallible-iterator-0.3) | ||
| 263 | ("rust-sqlite3-parser" ,rust-sqlite3-parser-0.12)))))) | ||
| 264 | |||
