summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-06-18 16:26:51 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-06-18 16:27:00 +0300
commitc54bc9bd55490bd9f4f5188fcf7d46ba501754dd (patch)
tree57197559639f3ed7989016014b26f74b424123da /gnu
parentb1ff69195afc4aefac21a4141d5921660ef86c9c (diff)
downloadguix-c54bc9bd55490bd9f4f5188fcf7d46ba501754dd.tar.gz
gnu: rust-libgit2-sys-0.7: Don't hide package.
* gnu/packages/crates-io.scm (rust-libgit2-sys-0.7)[source]: Remove
bundled code.
[arguments]: Add rust-curl-sys-0.4, rust-libc-0.2, rust-libssh2-sys-0.2,
rust-libz-sys-1.0, rust-openssl-sys-0.9, rust-cc-1.0,
rust-pkg-config-0.3 to cargo-inputs.
[properties]: Remove field.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm18
1 files changed, 14 insertions, 4 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b9b74b2c0e..2c1b7152a0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11374,12 +11374,22 @@ macros on libc without stdlib.")
       (origin
         (method url-fetch)
         (uri (crate-uri "libgit2-sys" version))
-        (file-name (string-append name "-" version ".crate"))
+        (file-name (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "1wcvg2qqra2aviasvqcscl8gb2rnjnd6h998wy5dlmf2bnriqi28"))))
-    (arguments '())
-    (properties '((hidden? . #t)))))
+          "1wcvg2qqra2aviasvqcscl8gb2rnjnd6h998wy5dlmf2bnriqi28"))
+        (modules '((guix build utils)))
+        (snippet
+         '(begin (delete-file-recursively "libgit2") #t))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-curl-sys" ,rust-curl-sys-0.4)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-libssh2-sys" ,rust-libssh2-sys-0.2)
+        ("rust-libz-sys" ,rust-libz-sys-1.0)
+        ("rust-openssl-sys" ,rust-openssl-sys-0.9)
+        ("rust-cc" ,rust-cc-1.0)
+        ("rust-pkg-config" ,rust-pkg-config-0.3))))))
 
 (define-public rust-libloading-0.5
   (package