forked from mirrors/nixpkgs
0419452113
The main changes are in libSystem, which lost the coretls component in 10.13 and some hardening changes that quietly crash any program that uses %n in a non-constant format string, so we've needed to patch a lot of programs that use gnulib.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, hostPlatform, fetchurl, xz }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gzip-${version}";
|
|
version = "1.8";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gzip/${name}.tar.xz";
|
|
sha256 = "1lxv3p4iyx7833mlihkn5wfwmz4cys5nybwpz3dfawag8kn6f5zz";
|
|
};
|
|
|
|
patches = stdenv.lib.optional hostPlatform.isDarwin stdenv.secure-format-patch;
|
|
|
|
outputs = [ "out" "man" "info" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ xz.bin ];
|
|
|
|
# In stdenv-linux, prevent a dependency on bootstrap-tools.
|
|
makeFlags = "SHELL=/bin/sh GREP=grep";
|
|
|
|
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;
|
|
};
|
|
}
|