[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
444/470: gnu: rust-ring-0.14: Remove pregenerated files.
From: |
guix-commits |
Subject: |
444/470: gnu: rust-ring-0.14: Remove pregenerated files. |
Date: |
Thu, 16 Mar 2023 03:02:37 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 172534fc832a3637b5b39ea7547fd122bc386ee1
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 13 13:27:08 2023 +0200
gnu: rust-ring-0.14: Remove pregenerated files.
* gnu/packages/crates-io.scm (rust-ring-0.14)[source]: Add snippet to
remove pregenerated files and add a fake .git directory.
[arguments]: Add a phase to generate curve25519 tables.
[native-inputs]: Add clang, python-2.
---
gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5bf45bb4e7..a1c83e96d4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48973,7 +48973,21 @@ functionality as retain but gives mutable borrow to
the predicate.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "0g091akf4dpg9qj05z3gc4nlrs57mjj2bqab98gaqp79wf3c2ss2"))))
+ "0g091akf4dpg9qj05z3gc4nlrs57mjj2bqab98gaqp79wf3c2ss2"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Fix the doc tests.
+ (substitute* "src/ec/curve25519/ed25519/verification.rs"
+ ((";;") ";"))
+ ;; Remove some generated files.
+ ;; Regenerating the curve25519_tables requires python2 and
clang-format.
+ (delete-file "third_party/fiat/curve25519_tables.h")
+ (delete-file-recursively "pregenerated")
+ ;; Pretend this isn't a relase tarball.
+ (with-output-to-file ".git"
+ (lambda _
+ (format #t "")))))))
(arguments
`(#:cargo-inputs
(("rust-lazy-static" ,rust-lazy-static-1)
@@ -48981,7 +48995,17 @@ functionality as retain but gives mutable borrow to
the predicate.")
("rust-spin" ,rust-spin-0.5)
("rust-untrusted" ,rust-untrusted-0.6)
("rust-winapi" ,rust-winapi-0.3)
- ("rust-cc" ,rust-cc-1))))))
+ ("rust-cc" ,rust-cc-1))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'generate-curve25519-tables
+ (lambda _
+ (with-directory-excursion "third_party/fiat"
+ (with-output-to-file "curve25519_tables.h"
+ (lambda _
+ (invoke "python" "make_curve25519_tables.py")))))))))
+ (native-inputs
+ (list clang perl python-2))))
(define-public rust-ring-0.13
(package
- 304/470: gnu: Add rust-proptest-derive-0.3., (continued)
- 304/470: gnu: Add rust-proptest-derive-0.3., guix-commits, 2023/03/16
- 335/470: gnu: rust-imgref-1: Update to 1.9.4., guix-commits, 2023/03/16
- 338/470: gnu: Add rust-ravif-0.8., guix-commits, 2023/03/16
- 424/470: gnu: Add rust-nu-ansi-term-0.46., guix-commits, 2023/03/16
- 379/470: gnu: Remove rust-lexical-5., guix-commits, 2023/03/16
- 396/470: gnu: gtk+-2: Remove trailing #t from phases., guix-commits, 2023/03/16
- 402/470: gnu: gtk+-2: Skip two more tests., guix-commits, 2023/03/16
- 412/470: gnu: Add rust-jemallocator-0.5., guix-commits, 2023/03/16
- 415/470: gnu: rust-nix-0.26: Update to 0.26.2., guix-commits, 2023/03/16
- 442/470: gnu: rust-fixedbitset-0.4: Update to 0.4.2., guix-commits, 2023/03/16
- 444/470: gnu: rust-ring-0.14: Remove pregenerated files.,
guix-commits <=
- 450/470: gnu: Add rust-aes-ctr-0.6., guix-commits, 2023/03/16
- 456/470: gnu: rust-1.55: Remove bundled libraries., guix-commits, 2023/03/16
- 457/470: gnu: rust-1.61: Remove riscv64-linux jemalloc workaround., guix-commits, 2023/03/16
- 467/470: gnu: sniffglue: Add missing input., guix-commits, 2023/03/16
- 180/470: gnu: Add rust-hkdf-0.12., guix-commits, 2023/03/16
- 422/470: gnu: Add rust-test-case-macros-2., guix-commits, 2023/03/16
- 375/470: gnu: rav1e: Update to 0.6.3., guix-commits, 2023/03/16
- 371/470: gnu: rust-wasm-bindgen-test-0.3: Update to 0.3.34., guix-commits, 2023/03/16
- 409/470: gnu: rust-ctrlc-3: Update to 3.2.5., guix-commits, 2023/03/16
- 394/470: gnu: Add rust-exr-1., guix-commits, 2023/03/16