nixpkgs/pkgs/tools/compression/gzip/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchurl, xz }:
stdenv.mkDerivation rec {
pname = "gzip";
version = "1.10";
src = fetchurl {
url = "mirror://gnu/gzip/${pname}-${version}.tar.xz";
sha256 = "1h6p374d3j8d4cdfydzls021xa2yby8myc0h8d6m8bc7k6ncq9c4";
};
outputs = [ "out" "man" "info" ];
enableParallelBuilding = true;
nativeBuildInputs = [ xz.bin ];
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;
};
}