1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "xz-5.2.1";
5
6 src = fetchurl {
7 url = "http://tukaani.org/xz/${name}.tar.bz2";
8 sha256 = "101a1kih58s1ysqfncqw69qnwx1zlbjxwhnfmp0z5gz0jzs4i4b7";
9 };
10
11 doCheck = true;
12
13 # In stdenv-linux, prevent a dependency on bootstrap-tools.
14 preConfigure = "unset CONFIG_SHELL";
15
16 postInstall = "rm -rf $out/share/doc";
17
18 meta = with stdenv.lib; {
19 homepage = http://tukaani.org/xz/;
20 description = "XZ, general-purpose data compression software, successor of LZMA";
21
22 longDescription =
23 '' XZ Utils is free general-purpose data compression software with high
24 compression ratio. XZ Utils were written for POSIX-like systems,
25 but also work on some not-so-POSIX systems. XZ Utils are the
26 successor to LZMA Utils.
27
28 The core of the XZ Utils compression code is based on LZMA SDK, but
29 it has been modified quite a lot to be suitable for XZ Utils. The
30 primary compression algorithm is currently LZMA2, which is used
31 inside the .xz container format. With typical files, XZ Utils
32 create 30 % smaller output than gzip and 15 % smaller output than
33 bzip2.
34 '';
35
36 license = with licenses; [ gpl2Plus lgpl21Plus ];
37 maintainers = with maintainers; [ sander ];
38 platforms = platforms.all;
39 };
40}