1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libbrotli/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

2017-01-04 08:07:38 +00:00
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, brotliUnstable }:
2016-01-21 21:13:35 +00:00
stdenv.mkDerivation rec {
2017-01-04 08:07:38 +00:00
name = "libbrotli-${version}";
version = "1.0";
2016-01-21 21:13:35 +00:00
src = fetchFromGitHub {
owner = "bagder";
repo = "libbrotli";
2017-01-04 08:07:38 +00:00
rev = name;
sha256 = "0apd3hpy3vaa7brkv8v0xwz05zbd5xv86rcbkwns4x39klba3m3y";
2016-01-21 21:13:35 +00:00
};
2017-01-04 08:07:38 +00:00
nativeBuildInputs = [ autoconf automake libtool ];
2016-01-21 21:13:35 +00:00
preConfigure = ''
cp -r ${brotliUnstable.src}/* brotli/
chmod -R +700 brotli
mkdir m4
autoreconf --install --force --symlink
'';
meta = with stdenv.lib; {
description = "Meta project to build libraries from the brotli source code";
longDescription = ''
Wrapper scripts and code around the brotli code base.
Builds libraries out of the brotli decode and encode sources. Uses autotools.
'brotlidec' is the library for decoding, decompression
'brotlienc' is the library for encoding, compression
'';
homepage = https://github.com/bagder/libbrotli;
license = licenses.mit;
platforms = platforms.all;
maintainers = [];
};
}