guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

466/471: gnu: rust-webpki-0.18: Fix build.


From: guix-commits
Subject: 466/471: gnu: rust-webpki-0.18: Fix build.
Date: Wed, 3 May 2023 09:29:27 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 22e5088b3ed09eb2f064314f75fffdf6c50aca88
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Apr 25 14:36:58 2023 +0300

    gnu: rust-webpki-0.18: Fix build.
    
    * gnu/packages/crates-io.scm (rust-webpki-0.18)[inherit]: Inherit from
    rust-webpki-0.19.
    [arguments]: Add a phase to build the curve25519 tables.
---
 gnu/packages/crates-io.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ffa2c2ffe0..872b3d2127 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71508,7 +71508,7 @@ Verification.")
 
 (define-public rust-webpki-0.18
   (package
-    (inherit rust-webpki-0.21)
+    (inherit rust-webpki-0.19)
     (name "rust-webpki")
     (version "0.18.1")
     (source
@@ -71524,7 +71524,16 @@ Verification.")
        (("rust-ring" ,rust-ring-0.13)
         ("rust-untrusted" ,rust-untrusted-0.6))
        #:cargo-development-inputs
-       (("rust-base64" ,rust-base64-0.9))))))
+       (("rust-base64" ,rust-base64-0.9))
+       #: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")))))))))))
 
 (define-public rust-webpki-roots-0.22
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]