guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: Add squashfs-tools.


From: ???
Subject: 01/01: gnu: Add squashfs-tools.
Date: Sat, 26 Sep 2015 02:36:09 +0000

iyzsong pushed a commit to branch master
in repository guix.

commit dd8d6d65475211c34ffd723bd1ae0a06705f1a2e
Author: 宋文武 <address@hidden>
Date:   Sat Sep 26 10:31:07 2015 +0800

    gnu: Add squashfs-tools.
    
    * gnu/packages/compression.scm (squashfs-tools): New variable.
---
 gnu/packages/compression.scm |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 2ab1e29..9a5c4e9 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -545,3 +545,44 @@ time for compression ratio.")
     ;; The libraries (lz4, lz4hc, and xxhash are BSD licenced. The command
     ;; line interface programs (lz4, fullbench, fuzzer, datagen) are GPL2+.
     (license (list license:bsd-2 license:gpl2+))))
+
+(define-public squashfs-tools
+  (package
+    (name "squashfs-tools")
+    (version "4.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/squashfs/"
+                                  "squashfs" version ".tar.gz"))
+              (sha256
+               (base32
+                "1xpklm0y43nd9i6jw43y2xh5zvlmj9ar2rvknh0bh7kv8c95aq0d"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f ; no check target
+       #:make-flags
+       (list "CC=gcc"
+             "XZ_SUPPORT=1"
+             "LZO_SUPPORT=1"
+             "LZ4_SUPPORT=1"
+             (string-append "INSTALL_DIR=" %output "/bin"))
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+                  (lambda _
+                    (chdir "squashfs-tools"))))))
+    (inputs
+     `(("lz4" ,lz4)
+       ("lzo" ,lzo)
+       ("xz" ,xz)
+       ("zlib" ,zlib)))
+    (home-page "http://squashfs.sourceforge.net/";)
+    (synopsis "Tools to create and extract squashfs filesystems")
+    (description
+     "Squashfs is a highly compressed read-only filesystem for Linux.  It uses
+zlib to compress files, inodes, and directories.  All blocks are packed to
+minimize the data overhead, and block sizes of between 4K and 1M are supported.
+It is intended to be used for archival use, for live CDs, and for embedded
+systems where low overhead is needed.  This package allows you to create and
+extract such filesystems.")
+    (license license:gpl2+)))



reply via email to

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