guix-commits
[Top][All Lists]
Advanced

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

03/41: gnu: rust-clang-sys-0.28: Don't hide package.


From: guix-commits
Subject: 03/41: gnu: rust-clang-sys-0.28: Don't hide package.
Date: Tue, 11 Feb 2020 13:24:43 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 47fdc51adbea326b05142630ca9a9c748300c6a6
Author: Efraim Flashner <address@hidden>
AuthorDate: Tue Feb 11 16:36:49 2020 +0200

    gnu: rust-clang-sys-0.28: Don't hide package.
    
    * gnu/packages/crates-io.scm (rust-clang-sys-0.28)[arguments]: Add
    rust-glob-0.3, rust-libc-0.2, rust-libloading-0.5 to cargo-inputs. Add
    custom phase to find libclang.
    [native-inputs]: Add clang.
    [properties]: Remove field.
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 13616bd..01b1c55 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1547,27 +1547,30 @@ depending on a large number of #[cfg] parameters.  
Structured like an
       (origin
         (method url-fetch)
         (uri (crate-uri "clang-sys" version))
-        (file-name (string-append name "-" version ".crate"))
+        (file-name (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
           "0ls8zcqi5bmmrvrk3b6r1ym4wlivinbv590d2dvg2xn9f44mbpl1"))))
     (build-system cargo-build-system)
-    ;(arguments
-    ; `(#:phases
-    ;   (modify-phases %standard-phases
-    ;     (add-after 'unpack 'set-environmental-variable
-    ;       (lambda* (#:key inputs #:allow-other-keys)
-    ;         (let ((clang (assoc-ref inputs "libclang")))
-    ;           (setenv "LIBCLANG_PATH"
-    ;                   (string-append clang "/lib")))
-    ;         #t)))))
-    ;(inputs
-    ; `(("libclang" ,clang)))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-glob" ,rust-glob-0.3)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-libloading" ,rust-libloading-0.5))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'set-environmental-variable
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((clang (assoc-ref inputs "libclang")))
+               (setenv "LIBCLANG_PATH"
+                       (string-append clang "/lib")))
+             #t)))))
+    (inputs
+     `(("libclang" ,clang)))
     (home-page "https://github.com/KyleMayes/clang-sys";)
     (synopsis "Rust bindings for libclang")
     (description
      "This package provides Rust bindings for @code{libclang}.")
-    (properties '((hidden? . #t)))
     (license license:asl2.0)))
 
 (define-public rust-clang-sys-0.26
@@ -1595,10 +1598,7 @@ depending on a large number of #[cfg] parameters.  
Structured like an
              (let ((clang (assoc-ref inputs "libclang")))
                (setenv "LIBCLANG_PATH"
                        (string-append clang "/lib")))
-             #t)))))
-    (inputs
-     `(("libclang" ,clang)))
-    (properties '())))
+             #t)))))))
 
 (define-public rust-clap-2
   (package



reply via email to

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