guix-commits
[Top][All Lists]
Advanced

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

09/45: gnu: rust-nettle-sys-2: Do not skip build.


From: guix-commits
Subject: 09/45: gnu: rust-nettle-sys-2: Do not skip build.
Date: Sun, 22 Nov 2020 12:49:38 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 529298bf9583732d078520905c1ac218d977bc58
Author: John Soo <jsoo1@asu.edu>
AuthorDate: Thu Jun 18 15:13:55 2020 -0700

    gnu: rust-nettle-sys-2: Do not skip build.
    
    * gnu/packages/crates-io.scm (rust-nettle-2-sys): [arguments] Change
    cargo-development-inputs into cargo-inputs since they are required to
    build. Do not skip build.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ee8e500..99c0f04 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -15919,10 +15919,17 @@ cryptographic library.")
     (inputs
      `(("nettle", nettle)))
     (arguments
-     `(#:skip-build? #t
-       #:cargo-development-inputs
+     `(#:cargo-inputs
        (("rust-bindgen" ,rust-bindgen-0.51)
-        ("rust-pkg-config" ,rust-pkg-config-0.3))))
+        ("rust-pkg-config" ,rust-pkg-config-0.3))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'set-environmental-variable
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((clang (assoc-ref inputs "clang")))
+               (setenv "LIBCLANG_PATH"
+                       (string-append clang "/lib")))
+             #t)))))
     (home-page "https://gitlab.com/sequoia-pgp/nettle-sys";)
     (synopsis "Low-level Rust bindings for the Nettle cryptographic library")
     (description "This package provides low-level Rust bindings for the Nettle



reply via email to

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