lol
at v192 40 lines 1.2 kB view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "gzip-1.6"; 5 6 src = fetchurl { 7 url = "mirror://gnu/gzip/${name}.tar.xz"; 8 sha256 = "0ivqnbhiwd12q8hp3qw6rpsrpw2jg5y2mymk8cn22lsx90dfvprp"; 9 }; 10 11 enableParallelBuilding = true; 12 13 preConfigure = if stdenv.isCygwin then '' 14 sed -i lib/fpending.h -e 's,include <stdio_ext.h>,,' 15 '' else null; 16 17 # In stdenv-linux, prevent a dependency on bootstrap-tools. 18 makeFlags = "SHELL=/bin/sh GREP=grep"; 19 20 meta = { 21 homepage = http://www.gnu.org/software/gzip/; 22 description = "GNU zip compression program"; 23 24 longDescription = 25 ''gzip (GNU zip) is a popular data compression program written by 26 Jean-loup Gailly for the GNU project. Mark Adler wrote the 27 decompression part. 28 29 We developed this program as a replacement for compress because of 30 the Unisys and IBM patents covering the LZW algorithm used by 31 compress. These patents made it impossible for us to use compress, 32 and we needed a replacement. The superior compression ratio of gzip 33 is just a bonus. 34 ''; 35 36 platforms = stdenv.lib.platforms.all; 37 38 license = stdenv.lib.licenses.gpl3Plus; 39 }; 40}