diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-04-25 14:18:39 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-05-07 19:29:42 +0300 |
commit | 1a176039405d92b6ed3fb0a0c7976930f54406de (patch) | |
tree | 0636052ea55f6245d66a63d3bf3d3ea251e27a73 /gnu/packages/crates-io.scm | |
parent | dc2fa72266f9007099c775e80885faa64a886d87 (diff) |
gnu: rust-sct-0.5: Fix build.
* gnu/packages/crates-io.scm (rust-sct-0.5)[arguments]: Add a phase to
build the curve25519 tables.
[native-inputs]: Add clang, perl, python-2.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index fee345a94a..d993d73d03 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -54220,7 +54220,18 @@ Pwrite traits from the scroll crate.") (arguments `(#:cargo-inputs (("rust-ring" ,rust-ring-0.14) - ("rust-untrusted" ,rust-untrusted-0.6)))))) + ("rust-untrusted" ,rust-untrusted-0.6)) + #:phases + (modify-phases %standard-phases + (add-before 'build 'build-curve25519-tables + (lambda* (#:key vendor-dir #:allow-other-keys) + (with-directory-excursion + (dirname (car (find-files vendor-dir "make_curve25519_tables.py"))) + (with-output-to-file "curve25519_tables.h" + (lambda _ + (invoke "python" "make_curve25519_tables.py"))))))))) + (native-inputs + (list clang perl python-2)))) (define-public rust-sct-0.4 (package |