From 697c71c656820eb8bdce53f11c6ae2f1413dde31 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sat, 14 Dec 2019 13:52:11 -0800 Subject: [PATCH 056/263] gnu: Add rust-lock-api-0.2. * gnu/packages/crates-io.scm (rust-lock-api-0.2): New variable. --- gnu/packages/crates-io.scm | 78 ++++++++++++++++++++++++++------------ 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0d347794e3..4be9da642c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2441,35 +2441,34 @@ functions and static variables these libraries contain.") (name "rust-libssh2-sys") (version "0.2.12") (source - (origin - (method url-fetch) - (uri (crate-uri "libssh2-sys" version)) - (file-name (string-append name "-" version ".crate")) - (sha256 - (base32 - "1zb6gsw795nq848nk5x2smzpfnn1s15wjlzjnvr8ihlz2l5x2549")))) - (build-system cargo-build-system) - ;(arguments - ; `(#:phases - ; (modify-phases %standard-phases - ; (add-after 'unpack 'find-openssl - ; (lambda* (#:key inputs #:allow-other-keys) - ; (let ((openssl (assoc-ref inputs "openssl"))) - ; (setenv "OPENSSL_DIR" openssl)) - ; (delete-file-recursively "libssh2") - ; (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1") - ; #t))))) - ;(native-inputs - ; `(("pkg-config" ,pkg-config))) - ;(inputs - ; `(("libssh2" ,libssh2) - ; ("openssl" ,openssl) - ; ("zlib" ,zlib))) + (origin + (method url-fetch) + (uri (crate-uri "libssh2-sys" version)) + (file-name (string-append name "-" version ".crate")) + (sha256 + (base32 + "1zb6gsw795nq848nk5x2smzpfnn1s15wjlzjnvr8ihlz2l5x2549")))) + (build-system cargo-build-system) + ; (arguments + ; `(#:phases + ; (modify-phases %standard-phases + ; (add-after 'unpack 'find-openssl + ; (lambda* (#:key inputs #:allow-other-keys) + ; (let ((openssl (assoc-ref inputs "openssl"))) + ; (setenv "OPENSSL_DIR" openssl)) + ; (delete-file-recursively "libssh2") + ; (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1") + ; #t))))) + ; (native-inputs + ; `(("pkg-config" ,pkg-config))) + ; (inputs + ; `(("libssh2" ,libssh2) + ; ("openssl" ,openssl) + ; ("zlib" ,zlib))) (home-page "https://github.com/alexcrichton/ssh2-rs") (synopsis "Native bindings to the libssh2 library") (description "This package provides native rust bindings to the @code{libssh2} library.") - (properties '((hidden? . #t))) (license (list license:asl2.0 license:expat)))) @@ -2496,6 +2495,35 @@ functions and static variables these libraries contain.") (license (list license:asl2.0 license:expat)))) +(define-public rust-lock-api-0.2 + (package + (name "rust-lock-api") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "lock_api" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1zx7pksmgyggpczgw4qrr4vj2nkdk5lipgiysvr20slm552nv57d")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-owning-ref" ,rust-owning-ref-0.4) + ("rust-scopeguard" ,rust-scopeguard-1.0) + ("rust-serde" ,rust-serde-1.0)))) + (home-page + "https://github.com/Amanieu/parking_lot") + (synopsis + "Wrappers to create fully-featured Mutex and RwLock types") + (description + "Wrappers to create fully-featured Mutex and RwLock types. Compatible +with no_std.") + (license `(,license:expat ,license:asl2.0)))) + (define-public rust-log-0.4 (package (name "rust-log") -- 2.24.1