diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-05 16:34:01 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-05 17:43:40 +0100 |
commit | 6f0b8eaa862874d42e93c880a0517cbf5dfb7c15 (patch) | |
tree | 8a0bf249156915a9a36dc8c828bc8531692d42ee /gnu | |
parent | 57c88ee947339d76fda9b864957477b6efe9f257 (diff) | |
download | guix-6f0b8eaa862874d42e93c880a0517cbf5dfb7c15.tar.gz |
gnu: Add rust-git2-0.13.
* gnu/packages/crates-io.scm (rust-git2-0.13): New variable. (rust-git2-0.11): Inherit from above.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 56 |
1 files changed, 40 insertions, 16 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6a9114dbc1..eb39a04e23 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10527,38 +10527,33 @@ authenticated encryption cipher.") DWARF debugging format.") (license (list license:asl2.0 license:expat)))) -(define-public rust-git2-0.11 +(define-public rust-git2-0.13 (package (name "rust-git2") - (version "0.11.0") + (version "0.13.12") (source (origin (method url-fetch) (uri (crate-uri "git2" version)) - (file-name - (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 - "1i0fgsr91r97hsjbgqnymkcyiyg0057m7m04116k3vmyqpvrwlbp")))) + (base32 "0912gv7mvqzdlgkzny0z7ph07g2dmkmz8hp6bvyziy6p7011lvya")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) ("rust-libc" ,rust-libc-0.2) - ("rust-libgit2-sys" ,rust-libgit2-sys-0.10) + ("rust-libgit2-sys" ,rust-libgit2-sys-0.12) ("rust-log" ,rust-log-0.4) ("rust-openssl-probe" ,rust-openssl-probe-0.1) ("rust-openssl-sys" ,rust-openssl-sys-0.9) ("rust-url" ,rust-url-2)) #:cargo-development-inputs - (("rust-docopt" ,rust-docopt-1.1) - ("rust-serde" ,rust-serde-1) - ("rust-serde-derive" ,rust-serde-derive-1) - ("rust-tempfile" ,rust-tempfile-3) - ("rust-thread-id" ,rust-thread-id-3) + (("rust-structopt" ,rust-structopt-0.3) ("rust-time" ,rust-time-0.1)))) (native-inputs - `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ("git" ,git-minimal))) ;for a single test (inputs `(("libgit2" ,libgit2) ("libssh2" ,libssh2) @@ -10567,10 +10562,39 @@ DWARF debugging format.") (home-page "https://github.com/rust-lang/git2-rs") (synopsis "Rust bindings to libgit2") (description - "Bindings to libgit2 for interoperating with git repositories. -This library is both threadsafe and memory safe and allows both + "This package provides bindings to libgit2 for interoperating with git +repositories. This library is both threadsafe and memory safe and allows both reading and writing git repositories.") - (license (list license:asl2.0 license:expat)))) + (license (list license:expat license:asl2.0)))) + +(define-public rust-git2-0.11 + (package + (inherit rust-git2-0.13) + (name "rust-git2") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "git2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1i0fgsr91r97hsjbgqnymkcyiyg0057m7m04116k3vmyqpvrwlbp")))) + (arguments + `(#:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-libgit2-sys" ,rust-libgit2-sys-0.10) + ("rust-log" ,rust-log-0.4) + ("rust-openssl-probe" ,rust-openssl-probe-0.1) + ("rust-openssl-sys" ,rust-openssl-sys-0.9) + ("rust-url" ,rust-url-2)) + #:cargo-development-inputs + (("rust-docopt" ,rust-docopt-1.1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-thread-id" ,rust-thread-id-3) + ("rust-time" ,rust-time-0.1)))))) (define-public rust-git2-0.9 (package |