From dd8d6d65475211c34ffd723bd1ae0a06705f1a2e Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Sat, 26 Sep 2015 10:31:07 +0800 Subject: gnu: Add squashfs-tools. * gnu/packages/compression.scm (squashfs-tools): New variable. --- gnu/packages/compression.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 2ab1e2955c..9a5c4e9a8d 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+))) -- cgit v1.2.3