gnu: Add rust-libsodium-sys-0.2.

* gnu/packages/crates-crypto.scm (rust-libsodium-sys-0.2): New variable.

Change-Id: Ib12c747ba7e895722d1171b1a468c4d35fee5783
This commit is contained in:
Efraim Flashner 2025-01-03 11:15:02 +02:00
parent fb12dbce49
commit 54cde94e8d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2,7 +2,7 @@
;;; Copyright © 2019, 2020 John Soo <jsoo1@asu.edu>
;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020, 2022-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020, 2022-2025 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Valentin Ignatev <valentignatev@gmail.com>
;;; Copyright © 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
@ -2786,6 +2786,36 @@ (define-public rust-kuznyechik-0.8
(description "Kuznyechik (GOST R 34.12-2015) block cipher")
(license (list license:expat license:asl2.0))))
(define-public rust-libsodium-sys-0.2
(package
(name "rust-libsodium-sys")
(version "0.2.7")
(source
(origin
(method url-fetch)
(uri (crate-uri "libsodium-sys" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1zcjka23grayr8kjrgbada6vwagp0kkni9m45v0gpbanrn3r6xvb"))
(snippet
#~(begin (use-modules (guix build utils))
(for-each delete-file-recursively
(list "libsodium"
"mingw"
"msvc"))))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-cc" ,rust-cc-1)
("rust-libc" ,rust-libc-0.2)
("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-walkdir" ,rust-walkdir-2))))
(native-inputs (list pkg-config))
(inputs (list libsodium))
(home-page "https://github.com/sodiumoxide/sodiumoxide.git")
(synopsis "FFI binding to libsodium")
(description "This package provides FFI bindings to libsodium.")
(license (list license:expat license:asl2.0))))
(define-public rust-mas-jose-0.7
(package
(name "rust-mas-jose")