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