gnu: rust-ring-0.16: Add missing files.
* gnu/packages/crates-io.scm (rust-ring-0.16)[source]: Add patch with missing files. Adjust snippet to delete a pre-generated file. [arguments]: Add a custom phase to rebuild the pre-generated-file. [native-inputs]: Add clang, python-2. * gnu/packages/patches/rust-ring-0.16-missing-files.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
parent
0432b5907b
commit
fe4c579037
|
@ -1912,6 +1912,7 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \
|
%D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \
|
||||||
%D%/packages/patches/rustc-1.54.0-src.patch \
|
%D%/packages/patches/rustc-1.54.0-src.patch \
|
||||||
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
|
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
|
||||||
|
%D%/packages/patches/rust-ring-0.16-missing-files.patch \
|
||||||
%D%/packages/patches/i3status-rust-enable-unstable-features.patch \
|
%D%/packages/patches/i3status-rust-enable-unstable-features.patch \
|
||||||
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
|
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
|
||||||
%D%/packages/patches/rust-ndarray-0.13-remove-blas-src.patch \
|
%D%/packages/patches/rust-ndarray-0.13-remove-blas-src.patch \
|
||||||
|
|
|
@ -52098,10 +52098,14 @@ Digital Signature Algorithm} (ECDSA).")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1z682xp7v38ayq9g9nkbhhfpj6ygralmlx7wdmsfv8rnw99cylrh"))
|
(base32 "1z682xp7v38ayq9g9nkbhhfpj6ygralmlx7wdmsfv8rnw99cylrh"))
|
||||||
|
(patches (search-patches "rust-ring-0.16-missing-files.patch"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
(delete-file-recursively "pregenerated")
|
(delete-file-recursively "pregenerated")
|
||||||
|
;; Regenerating the curve25519_tables requires python2 and clang-format.
|
||||||
|
;; Luckily we've added the script back in the patch.
|
||||||
|
(delete-file "crypto/curve25519/curve25519_tables.h")
|
||||||
;; Pretend this isn't a relase tarball.
|
;; Pretend this isn't a relase tarball.
|
||||||
(with-output-to-file ".git"
|
(with-output-to-file ".git"
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -52120,9 +52124,17 @@ Digital Signature Algorithm} (ECDSA).")
|
||||||
("rust-cc" ,rust-cc-1))
|
("rust-cc" ,rust-cc-1))
|
||||||
#:cargo-development-inputs
|
#:cargo-development-inputs
|
||||||
(("rust-libc" ,rust-libc-0.2)
|
(("rust-libc" ,rust-libc-0.2)
|
||||||
("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))))
|
("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'generate-curve25519-tables
|
||||||
|
(lambda _
|
||||||
|
(with-directory-excursion "crypto/curve25519"
|
||||||
|
(with-output-to-file "curve25519_tables.h"
|
||||||
|
(lambda _
|
||||||
|
(invoke "python" "make_curve25519_tables.py")))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list perl))
|
(list clang perl python-2))
|
||||||
(home-page "https://github.com/briansmith/ring")
|
(home-page "https://github.com/briansmith/ring")
|
||||||
(synopsis "Safe, fast, small crypto using Rust")
|
(synopsis "Safe, fast, small crypto using Rust")
|
||||||
(description "This package provided safe, fast, small crypto using Rust.")
|
(description "This package provided safe, fast, small crypto using Rust.")
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue