From af59272f993812f518b319c5a48d29fd6e229d24 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Jan 2024 21:55:10 +0200 Subject: gnu: rust-commoncrypto: Move to (gnu packages crates-apple). * gnu/packages/crates-io.scm (rust-commoncrypto-0.2, rust-commoncrypto-sys-0.2): Move from here ... * gnu/packages/crates-apple.scm: ... to here. Change-Id: I080088e9cea2631736e6fe06158f9263cbddbc5e --- gnu/packages/crates-apple.scm | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'gnu/packages/crates-apple.scm') 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 ;;; Copyright © 2020 John Soo ;;; Copyright © 2020 Arun Isaac +;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021, 2022 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Steve George ;;; @@ -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") -- cgit v1.2.3