at 16.09-beta 45 lines 1.3 kB view raw
1{ stdenv, 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 outputs = [ "out" "man" "info" ]; 13 14 enableParallelBuilding = true; 15 16 buildInputs = [ xz.bin ]; 17 18 preConfigure = if stdenv.isCygwin then '' 19 sed -i lib/fpending.h -e 's,include <stdio_ext.h>,,' 20 '' else null; 21 22 # In stdenv-linux, prevent a dependency on bootstrap-tools. 23 makeFlags = "SHELL=/bin/sh GREP=grep"; 24 25 meta = { 26 homepage = https://www.gnu.org/software/gzip/; 27 description = "GNU zip compression program"; 28 29 longDescription = 30 ''gzip (GNU zip) is a popular data compression program written by 31 Jean-loup Gailly for the GNU project. Mark Adler wrote the 32 decompression part. 33 34 We developed this program as a replacement for compress because of 35 the Unisys and IBM patents covering the LZW algorithm used by 36 compress. These patents made it impossible for us to use compress, 37 and we needed a replacement. The superior compression ratio of gzip 38 is just a bonus. 39 ''; 40 41 platforms = stdenv.lib.platforms.all; 42 43 license = stdenv.lib.licenses.gpl3Plus; 44 }; 45}