fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib, stdenv, fetchurl
2, linkStatic ? with stdenv.hostPlatform; isStatic || isCygwin
3, autoreconfHook
4}:
5
6# Note: this package is used for bootstrapping fetchurl, and thus
7# cannot use fetchpatch! All mutable patches (generated by GitHub or
8# cgit) that are needed here should be included directly in Nixpkgs as
9# files.
10
11stdenv.mkDerivation rec {
12 pname = "bzip2";
13 version = "1.0.6.0.2";
14
15 /* We use versions patched to use autotools style properly,
16 saving lots of trouble. */
17 src = fetchurl {
18 urls = map
19 (prefix: prefix + "/people/sbrabec/bzip2/tarballs/${pname}-${version}.tar.gz")
20 [
21 "http://ftp.uni-kl.de/pub/linux/suse"
22 "ftp://ftp.hs.uni-hamburg.de/pub/mirrors/suse"
23 "ftp://ftp.mplayerhq.hu/pub/linux/suse"
24 "http://ftp.suse.com/pub" # the original patched version but slow
25 ];
26 sha256 = "sha256-FnhwNy4OHe8d5M6iYCClkxzcB/EHXg0veXwv43ZlxbA=";
27 };
28
29 nativeBuildInputs = [ autoreconfHook ];
30
31 patches = [
32 ./CVE-2016-3189.patch
33 ./cve-2019-12900.patch
34 ];
35
36 postPatch = ''
37 sed -i -e '/<sys\\stat\.h>/s|\\|/|' bzip2.c
38 '';
39
40 outputs = [ "bin" "dev" "out" "man" ];
41
42 configureFlags =
43 lib.optionals linkStatic [ "--enable-static" "--disable-shared" ];
44
45 enableParallelBuilding = true;
46
47 meta = with lib; {
48 description = "High-quality data compression program";
49 homepage = "https://www.sourceware.org/bzip2";
50 changelog = "https://sourceware.org/git/?p=bzip2.git;a=blob;f=CHANGES;hb=HEAD";
51 license = licenses.bsdOriginal;
52 platforms = platforms.all;
53 maintainers = with maintainers; [ mic92 ];
54 };
55}