mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 17:25:11 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ stdenv, fetchurl, fetchpatch
|
|
, linkStatic ? (stdenv.system == "i686-cygwin")
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "bzip2-${version}";
|
|
version = "1.0.6.0.1";
|
|
|
|
/* We use versions patched to use autotools style properly,
|
|
saving lots of trouble. */
|
|
src = fetchurl {
|
|
urls = map
|
|
(prefix: prefix + "/people/sbrabec/bzip2/tarballs/${name}.tar.gz")
|
|
[
|
|
"http://ftp.uni-kl.de/pub/linux/suse"
|
|
"ftp://ftp.hs.uni-hamburg.de/pub/mirrors/suse"
|
|
"ftp://ftp.mplayerhq.hu/pub/linux/suse"
|
|
"http://ftp.suse.com/pub" # the original patched version but slow
|
|
];
|
|
sha256 = "0b5b5p8c7bslc6fslcr1nj9136412v3qcvbg6yxi9argq9g72v8c";
|
|
};
|
|
|
|
patches = [
|
|
./CVE-2016-3189.patch
|
|
];
|
|
|
|
|
|
postPatch = ''
|
|
sed -i -e '/<sys\\stat\.h>/s|\\|/|' bzip2.c
|
|
'';
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
|
|
|
configureFlags =
|
|
stdenv.lib.optionals linkStatic [ "--enable-static" "--disable-shared" ];
|
|
|
|
meta = {
|
|
homepage = http://www.bzip.org;
|
|
description = "High-quality data compression program";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = [];
|
|
};
|
|
}
|