at 16.09-beta 39 lines 1.1 kB view raw
1{ stdenv, fetchurl 2, linkStatic ? (stdenv.system == "i686-cygwin") 3}: 4 5stdenv.mkDerivation rec { 6 name = "bzip2-${version}"; 7 version = "1.0.6.0.1"; 8 9 /* We use versions patched to use autotools style properly, 10 saving lots of trouble. */ 11 src = fetchurl { 12 urls = map 13 (prefix: prefix + "/people/sbrabec/bzip2/tarballs/${name}.tar.gz") 14 [ 15 "http://ftp.uni-kl.de/pub/linux/suse" 16 "ftp://ftp.hs.uni-hamburg.de/pub/mirrors/suse" 17 "ftp://ftp.mplayerhq.hu/pub/linux/suse" 18 "http://ftp.suse.com/pub" # the original patched version but slow 19 ]; 20 sha256 = "0b5b5p8c7bslc6fslcr1nj9136412v3qcvbg6yxi9argq9g72v8c"; 21 }; 22 23 postPatch = '' 24 sed -i -e '/<sys\\stat\.h>/s|\\|/|' bzip2.c 25 ''; 26 27 outputs = [ "bin" "dev" "out" "man" ]; 28 29 configureFlags = 30 stdenv.lib.optionals linkStatic [ "--enable-static" "--disable-shared" ]; 31 32 meta = { 33 homepage = "http://www.bzip.org"; 34 description = "High-quality data compression program"; 35 36 platforms = stdenv.lib.platforms.all; 37 maintainers = []; 38 }; 39}