git.iko.soy/typeable/nixpkgs
on master help sign in
brotliUnstable: init at bed93862
commit05bf6b2b10abae70dc6a605cc7575c13fd4f1a81 authorknupfer <fknupfer@gmail.com> dateThu 21 Jan 2016, 22:09 (11 years ago) parent23b76d3
2 files changed+48
pkgs/tools/compression/brotli/unstable.nix+46 pkgs/top-level/all-packages.nix+2
pkgs/tools/compression/brotli/unstable.nixnew file+46
@@ -0,0 +1,46 @@
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+2
@@ -1144,6 +1144,8 @@ let
11441144
11451145 brotli = callPackage ../tools/compression/brotli { };
11461146
1147+ brotliUnstable = callPackage ../tools/compression/brotli/unstable.nix { };
1148+
11471149 biosdevname = callPackage ../tools/networking/biosdevname { };
11481150
11491151 checkbashism = callPackage ../development/tools/misc/checkbashisms { };