diff options
author | Joseph LaFreniere <joseph@lafreniere.xyz> | 2020-11-20 08:27:09 -0600 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-12-17 11:49:40 +0200 |
commit | a54b067e1e48f2b276aa12ae17f98d6593f740f0 (patch) | |
tree | aec69bc0673a7493a4a20cdcdad2bc6e8b4152bd /gnu/packages | |
parent | 7c0539d0962a01a97c55d7087114ef54b63b6924 (diff) | |
download | guix-a54b067e1e48f2b276aa12ae17f98d6593f740f0.tar guix-a54b067e1e48f2b276aa12ae17f98d6593f740f0.tar.gz |
gnu: Add rust-rusqlite-0.23.
* gnu/packages/crates-io.scm (rust-rusqlite-0.23): New variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 82fdda4bfe..a582b8f2bc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -23946,6 +23946,63 @@ console applications.") (description "This prackage provides a wrapper for SQLite.") (license license:expat))) +(define-public rust-rusqlite-0.23 + (package + (inherit rust-rusqlite-0.24) + (name "rust-rusqlite") + (version "0.23.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "rusqlite" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "12z5584sylfqg7v2fyiycahyg0hf186v8v2ff5ad4qyzw5igvl25")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Enable unstable features + (substitute* "src/lib.rs" + (("#!\\[allow\\(unknown_lints\\)\\]" all) + (string-append + "#![feature(cfg_doctest)]\n" + "#![feature(non_exhaustive)]\n" + all))))))) + (arguments + `(#:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-byteorder" ,rust-byteorder-1) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-csv" ,rust-csv-1.1) + ("rust-fallible-iterator" ,rust-fallible-iterator-0.2) + ("rust-fallible-streaming-iterator" + ,rust-fallible-streaming-iterator-0.1) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libsqlite3-sys" ,rust-libsqlite3-sys-0.18) + ("rust-lru-cache" ,rust-lru-cache-0.1) + ("rust-memchr" ,rust-memchr-2) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-time" ,rust-time-0.1) + ("rust-url" ,rust-url-2) + ("rust-uuid" ,rust-uuid-0.8)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-doc-comment" ,rust-doc-comment-0.3) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-regex" ,rust-regex-1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-unicase" ,rust-unicase-2) + ("rust-uuid" ,rust-uuid-0.8)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'enable-unstable-features + (lambda _ + (setenv "RUSTC_BOOTSTRAP" "1") + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))))) + (define-public rust-rust-argon2-0.7 (package (name "rust-rust-argon2") |