nixpkgs/pkgs/tools/compression/gzip/default.nix
Vladimír Čunát 8da52a642a Merge branch 'staging' into v/modular
Conflicts (easy):
	pkgs/development/interpreters/perl/5.10/setup-hook.sh
	pkgs/development/interpreters/perl/5.8/setup-hook.sh
	pkgs/development/libraries/gtk+/2.x.nix
2014-08-31 12:23:18 +02:00

37 lines
1 KiB
Nix

{ stdenv, fetchurl, xz }:
stdenv.mkDerivation rec {
name = "gzip-1.6";
src = fetchurl {
url = "mirror://gnu/gzip/${name}.tar.xz";
sha256 = "0ivqnbhiwd12q8hp3qw6rpsrpw2jg5y2mymk8cn22lsx90dfvprp";
};
enableParallelBuilding = true;
buildInputs = [ xz.bin ];
# In stdenv-linux, prevent a dependency on bootstrap-tools.
makeFlags = "SHELL=/bin/sh GREP=grep";
meta = {
homepage = http://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.
'';
license = stdenv.lib.licenses.gpl3Plus;
};
}