summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2020-09-21 00:17:24 +0530
committerArun Isaac <arunisaac@systemreboot.net>2020-10-12 11:42:05 +0530
commit20921cc75b0f1ade594e5a50ec7db3486a713d81 (patch)
treecd381ba64615d541a67748fc1f3d0a29004a2a23 /gnu
parent4bfac1abe65add0f26d349c113bfd7b97c1a172a (diff)
downloadguix-20921cc75b0f1ade594e5a50ec7db3486a713d81.tar.gz
gnu: Add rust-libflate-1.
* gnu/packages/crates-io.scm (rust-libflate-1): New variable.
(rust-libflate-0.1): Inherit from rust-libflate-1.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm60
1 files changed, 41 insertions, 19 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8c7d11ef43..bf2c5bdd7a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13036,24 +13036,36 @@ values of all the exported APIs match the platform that libc is compiled for.")
 macros on libc without stdlib.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-libgit2-sys-0.10
+(define-public rust-libflate-1
   (package
-    (name "rust-libgit2-sys")
-    (version "0.10.0")
+    (name "rust-libflate")
+    (version "1.0.2")
     (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "libgit2-sys" version))
-        (file-name (string-append name "-" version ".tar.gz"))
-        (sha256
-         (base32
-          "0l9fvki7qxsl97vgzqwlv75nl213a5vxw7b1jaik97ala356pv6r"))
-        (modules '((guix build utils)))
-        (snippet
-         '(begin (delete-file-recursively "libgit2") #t))))
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libflate" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0jarv5ildsm0ci4prd4gz7fqypifhp9xk34z9w49rchx7q1ckfp9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-adler32" ,rust-adler32-1)
+        ("rust-crc32fast" ,rust-crc32fast-1)
+        ("rust-libflate-lz77" ,rust-libflate-lz77-1)
+        ("rust-rle-decode-fast" ,rust-rle-decode-fast-1))
+       #:cargo-development-inputs
+       (("rust-clap" ,rust-clap-2))))
+    (home-page "https://github.com/sile/libflate")
+    (synopsis "DEFLATE algorithm and related formats (ZLIB, GZIP)")
+    (description "This package provides a Rust implementation of DEFLATE
+algorithm and related formats (ZLIB, GZIP).")
+    (license license:expat)))
 
 (define-public rust-libflate-0.1
   (package
+    (inherit rust-libflate-1)
     (name "rust-libflate")
     (version "0.1.27")
     (source
@@ -13072,12 +13084,7 @@ macros on libc without stdlib.")
         ("rust-rle-decode-fast" ,rust-rle-decode-fast-1)
         ("rust-take-mut" ,rust-take-mut-0.2))
        #:cargo-development-inputs
-       (("rust-clap" ,rust-clap-2))))
-    (home-page "https://github.com/sile/libflate")
-    (synopsis "DEFLATE algorithm and related formats (ZLIB, GZIP)")
-    (description "This package provides a Rust implementation of DEFLATE
-algorithm and related formats (ZLIB, GZIP).")
-    (license license:expat)))
+       (("rust-clap" ,rust-clap-2))))))
 
 (define-public rust-libflate-lz77-1
   (package
@@ -13100,6 +13107,21 @@ algorithm and related formats (ZLIB, GZIP).")
     (description "This package provides a LZ77 encoder for libflate crate.")
     (license license:expat)))
 
+(define-public rust-libgit2-sys-0.10
+  (package
+    (name "rust-libgit2-sys")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libgit2-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0l9fvki7qxsl97vgzqwlv75nl213a5vxw7b1jaik97ala356pv6r"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (delete-file-recursively "libgit2") #t))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs