aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 18:20:49 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:46:01 +0300
commit1515ecae214891dbf96045e0a1ff9be7b0527830 (patch)
treeca6c508f3575c448910055194a02888ca74f1771 /gnu/packages
parentf32a4ba74660b6f1adfc7e61343a1684ffedeb8a (diff)
downloadguix-1515ecae214891dbf96045e0a1ff9be7b0527830.tar.gz
guix-1515ecae214891dbf96045e0a1ff9be7b0527830.zip
gnu: Add rust-lzma-sys.
* gnu/packages/crates-io.scm (rust-lzma-sys): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7a7b2be4f4..705cccbce9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -24,6 +24,7 @@
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages gcc)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages maths)
@@ -1245,6 +1246,42 @@ functions and static variables these libraries contain.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-lzma-sys
+ (package
+ (name "rust-lzma-sys")
+ (version "0.1.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "lzma-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "14gyj256yh0wm77jbvmlc39v7lfn0navpfrja4alczarzlc8ir2k"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cc" ,rust-cc)
+ ("rust-libc" ,rust-libc)
+ ("rust-pkg-config" ,rust-pkg-config))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'unbundle-xz
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((xz (assoc-ref inputs "xz")))
+ (delete-file-recursively "xz-5.2"))
+ #t)))))
+ (inputs
+ `(("pkg-config" ,pkg-config)
+ ("xz" ,xz)))
+ (home-page "https://github.com/alexcrichton/xz2-rs")
+ (synopsis "Bindings to liblzma for lzma and xz stream encoding/decoding")
+ (description
+ "This package contains the raw bindings to liblzma which contains an
+implementation of LZMA and xz stream encoding/decoding.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-maplit
(package
(name "rust-maplit")