aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-apple.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/crates-apple.scm')
-rw-r--r--gnu/packages/crates-apple.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm
index 6b324fdd14..6e9b73bce6 100644
--- a/gnu/packages/crates-apple.scm
+++ b/gnu/packages/crates-apple.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021, 2022 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023 Steve George <steve@futurile.net>
;;;
@@ -338,6 +339,57 @@ extension of blocks.")
"This package provides bindings to Cocoa Foundation for macOS.")
(license (list license:expat license:asl2.0))))
+(define-public rust-commoncrypto-0.2
+ (package
+ (name "rust-commoncrypto")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "commoncrypto" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "01whnqcziclsj1gwavvqhrw2r5cmwh00j2fbc56iwnm2ddcahmnh"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-clippy" ,rust-clippy-0.0)
+ ("rust-commoncrypto-sys" ,rust-commoncrypto-sys-0.2))))
+ (home-page "https://github.com/malept/rust-commoncrypto")
+ (synopsis "Idiomatic Rust wrappers for Mac OS X's CommonCrypto library")
+ (description "The @{commoncrypto} library provides Rust FFI bindings and
+idiomatic wrappers for Mac OS X's CommonCrypto library.")
+ (license license:expat)))
+
+(define-public rust-commoncrypto-sys-0.2
+ (package
+ (name "rust-commoncrypto-sys")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "commoncrypto-sys" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1ql381ziqh594a7z6m9bvs583lkrhbynk02pmbgp7aj7czs39v8z"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t ;requires the Mac OS library
+ #:cargo-inputs
+ (("rust-clippy" ,rust-clippy-0.0)
+ ("rust-libc" ,rust-libc-0.2))))
+ (home-page "https://github.com/malept/rust-commoncrypto")
+ (synopsis "FFI bindings to Mac OS X's CommonCrypto library")
+ (description "This package is a component of the @code{commoncrypto}
+library which provides Rust FFI bindings and idiomatic wrappers for Mac OS X's
+CommonCrypto library.")
+ (license license:expat)))
+
(define-public rust-coreaudio-rs-0.10
(package
(name "rust-coreaudio-rs")