[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/41: gnu: Add rust-lzma-sys.
From: |
guix-commits |
Subject: |
25/41: gnu: Add rust-lzma-sys. |
Date: |
Fri, 6 Sep 2019 08:47:29 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 1515ecae214891dbf96045e0a1ff9be7b0527830
Author: Efraim Flashner <address@hidden>
Date: Thu Sep 5 18:20:49 2019 +0300
gnu: Add rust-lzma-sys.
* gnu/packages/crates-io.scm (rust-lzma-sys): New variable.
---
gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7a7b2be..705cccb 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")
- 06/41: gnu: Add rust-rustc-serialize., (continued)
- 06/41: gnu: Add rust-rustc-serialize., guix-commits, 2019/09/06
- 17/41: gnu: Add rust-miniz-sys., guix-commits, 2019/09/06
- 09/41: gnu: Add rust-cmake., guix-commits, 2019/09/06
- 16/41: gnu: Add rust-miniz-oxide., guix-commits, 2019/09/06
- 18/41: gnu: Add rust-netlib-src., guix-commits, 2019/09/06
- 10/41: gnu: Add rust-stacker., guix-commits, 2019/09/06
- 15/41: gnu: Add rust-memmap-0.6., guix-commits, 2019/09/06
- 22/41: gnu: Add rust-rustc-demangle., guix-commits, 2019/09/06
- 20/41: gnu: Add rust-gcc., guix-commits, 2019/09/06
- 36/41: gnu: Add rust-glob-0.2., guix-commits, 2019/09/06
- 25/41: gnu: Add rust-lzma-sys.,
guix-commits <=
- 27/41: gnu: Add rust-xattr., guix-commits, 2019/09/06
- 21/41: gnu: Add rust-pico-sys., guix-commits, 2019/09/06
- 24/41: gnu: Add rust-jemalloc-sys., guix-commits, 2019/09/06
- 41/41: gnu: Add rust-parity-wasm., guix-commits, 2019/09/06
- 23/41: gnu: Add rust-cargon., guix-commits, 2019/09/06
- 34/41: gnu: Add rust-sourcefile., guix-commits, 2019/09/06
- 35/41: gnu: Add rust-glob., guix-commits, 2019/09/06
- 39/41: gnu: Add rust-semver-parser-0.7., guix-commits, 2019/09/06
- 02/41: gnu: Add rust-rand-0.3., guix-commits, 2019/09/06
- 13/41: gnu: Add rust-vcpkg., guix-commits, 2019/09/06