git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32123 from kosta/master

brotli: 0.6.0 -> 1.0.1

commit11520e812c64989f1ebbe51d44553041c32ac7bf authorOrivej Desh <orivej@gmx.fr> dateWed 29 Nov 2017, 11:16 (9 years ago) parent6254f592a0e757
5 files changed+6−93
pkgs/development/libraries/libbrotli/default.nix−37 pkgs/servers/http/nginx/modules.nix+3−3 pkgs/tools/compression/brotli/default.nix+3−3 pkgs/tools/compression/brotli/unstable.nix−46 pkgs/top-level/all-packages.nix−4
pkgs/development/libraries/libbrotli/default.nixdeleted−37
@@ -1,37 +0,0 @@
1−{ stdenv, fetchFromGitHub, autoconf, automake, libtool, brotliUnstable }:
2−
3−stdenv.mkDerivation rec {
4− name = "libbrotli-${version}";
5− version = "1.0";
6−
7− src = fetchFromGitHub {
8− owner = "bagder";
9− repo = "libbrotli";
10− rev = name;
11− sha256 = "0apd3hpy3vaa7brkv8v0xwz05zbd5xv86rcbkwns4x39klba3m3y";
12− };
13−
14− nativeBuildInputs = [ autoconf automake libtool ];
15−
16− preConfigure = ''
17− cp -r ${brotliUnstable.src}/* brotli/
18− chmod -R +700 brotli
19− mkdir m4
20− autoreconf --install --force --symlink
21− '';
22−
23− meta = with stdenv.lib; {
24− description = "Meta project to build libraries from the brotli source code";
25− longDescription = ''
26− Wrapper scripts and code around the brotli code base.
27− Builds libraries out of the brotli decode and encode sources. Uses autotools.
28− 'brotlidec' is the library for decoding, decompression
29− 'brotlienc' is the library for encoding, compression
30− '';
31−
32− homepage = https://github.com/bagder/libbrotli;
33− license = licenses.mit;
34− platforms = platforms.all;
35− maintainers = [];
36− };
37−}
pkgs/servers/http/nginx/modules.nix+3−3
@@ -5,10 +5,10 @@
55 src = fetchFromGitHub {
66 owner = "google";
77 repo = "ngx_brotli";
8− rev = "788615eab7c5e0a984278113c55248305620df14";
9− sha256 = "02514bbjdhm9m38vljdh626d3c1783jxsxawv5c6bzblwmb8xgvf";
8+ rev = "bfd2885b2da4d763fed18f49216bb935223cd34b";
9+ sha256 = "04yx1n0wi3l2x37jd1ynl9951qxkn8xp42yv0mfp1qz9svips81n";
10+ fetchSubmodules = true;
1011 };
11− inputs = [ pkgs.libbrotli ];
1212 };
1313
1414 rtmp = {
pkgs/tools/compression/brotli/default.nix+3−3
@@ -4,19 +4,19 @@
44
55stdenv.mkDerivation rec {
66 name = "brotli-${version}";
7− version = "0.6.0";
7+ version = "1.0.1";
88
99 src = fetchFromGitHub {
1010 owner = "google";
1111 repo = "brotli";
1212 rev = "v" + version;
13− sha256 = "1wapq5hzflbmrcqgz92iv79rm893bskh03kvqgnn33dzbz3slavs";
13+ sha256 = "1rqgp8xi1k4sjy9sngg1vw0v8q2mm46dhyya4d35n3k6yk7pk0qv";
1414 };
1515
1616 buildInputs = [ cmake ];
1717
1818 # This breaks on Darwin because our cmake hook tries to make a build folder
19− # and the wonderful bazel BUILD file is already there (yay case-insensitivty?)
19+ # and the wonderful bazel BUILD file is already there (yay case-insensitivity?)
2020 prePatch = "rm BUILD";
2121
2222 meta = with stdenv.lib; {
pkgs/tools/compression/brotli/unstable.nixdeleted−46
@@ -1,46 +0,0 @@
1−{ stdenv, fetchFromGitHub }:
2−
3−# ?TODO: there's also python lib in there
4−
5−stdenv.mkDerivation rec {
6− name = "brotli-20160112";
7− version = "bed93862";
8−
9− src = fetchFromGitHub {
10− owner = "google";
11− repo = "brotli";
12− rev = "bed93862608d4d232ebe6d229f04e48399775e8b";
13− sha256 = "0g94kqh984qkbqbj4fpkkyji9wnbrb9cs32r9d6niw1sqfnfkd6f";
14− };
15−
16− preConfigure = "cd tools";
17−
18− # Debian installs "brotli" instead of "bro" but let's keep upstream choice for now.
19− installPhase = ''
20− mkdir -p "$out/bin"
21− mv ./bro "$out/bin/"
22− '';
23−
24− meta = with stdenv.lib; {
25− inherit (src.meta) homepage;
26−
27− description = "A generic-purpose lossless compression algorithm and tool";
28−
29− longDescription =
30− '' Brotli is a generic-purpose lossless compression algorithm that
31− compresses data using a combination of a modern variant of the LZ77
32− algorithm, Huffman coding and 2nd order context modeling, with a
33− compression ratio comparable to the best currently available
34− general-purpose compression methods. It is similar in speed with
35− deflate but offers more dense compression.
36−
37− The specification of the Brotli Compressed Data Format is defined
38− in the following internet draft:
39− http://www.ietf.org/id/draft-alakuijala-brotli
40− '';
41−
42− license = licenses.mit;
43− maintainers = [];
44− platforms = platforms.all;
45− };
46−}
pkgs/top-level/all-packages.nix−4
@@ -1553,10 +1553,6 @@ with pkgs;
15531553
15541554 brotli = callPackage ../tools/compression/brotli { };
15551555
1556− brotliUnstable = callPackage ../tools/compression/brotli/unstable.nix { };
1557−
1558− libbrotli = callPackage ../development/libraries/libbrotli { };
1559−
15601556 biosdevname = callPackage ../tools/networking/biosdevname { };
15611557
15621558 c14 = callPackage ../applications/networking/c14 { };