blob: c39216f1e0ccd14b3bed82ef08fb804ac73c2a32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ stdenv, hostPlatform, fetchurl, xz }:
stdenv.mkDerivation rec {
name = "gzip-${version}";
version = "1.9";
src = fetchurl {
url = "mirror://gnu/gzip/${name}.tar.xz";
sha256 = "16h8g4acy7fgfxcjacr3wijjsnixwsfd2jhz3zwdi2qrzi262l5f";
};
outputs = [ "out" "man" "info" ];
enableParallelBuilding = true;
nativeBuildInputs = [ xz.bin ];
# In stdenv-linux, prevent a dependency on bootstrap-tools.
makeFlags = "SHELL=/bin/sh GREP=grep";
doCheck = false; # fails
meta = {
homepage = https://www.gnu.org/software/gzip/;
description = "GNU zip compression program";
longDescription =
''gzip (GNU zip) is a popular data compression program written by
Jean-loup Gailly for the GNU project. Mark Adler wrote the
decompression part.
We developed this program as a replacement for compress because of
the Unisys and IBM patents covering the LZW algorithm used by
compress. These patents made it impossible for us to use compress,
and we needed a replacement. The superior compression ratio of gzip
is just a bonus.
'';
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl3Plus;
};
}
|