brotli: cleanup
This commit is contained in:
parent
4bc05c6a30
commit
0a97ad6827
|
@ -1,4 +1,8 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, fetchpatch
|
||||
, staticOnly ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
|
@ -11,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "brotli";
|
||||
rev = "v" + version;
|
||||
rev = "v${version}";
|
||||
sha256 = "z6Dhrabav1MDQ4rAcXaDv0aN+qOoh9cvoXZqEWBB13c=";
|
||||
};
|
||||
|
||||
|
@ -24,8 +28,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sOeXNVsCaBSD9i82GRUDrkyreGeQ7qaJWjjy/uLL0/0=";
|
||||
});
|
||||
|
||||
cmakeFlags = []
|
||||
++ lib.optional staticOnly "-DBUILD_SHARED_LIBS=OFF";
|
||||
cmakeFlags = lib.optional staticOnly "-DBUILD_SHARED_LIBS=OFF";
|
||||
|
||||
outputs = [ "out" "dev" "lib" ];
|
||||
|
||||
|
@ -53,10 +56,8 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
|
||||
homepage = "https://github.com/google/brotli";
|
||||
description = "A generic-purpose lossless compression algorithm and tool";
|
||||
|
||||
longDescription =
|
||||
'' Brotli is a generic-purpose lossless compression algorithm that
|
||||
compresses data using a combination of a modern variant of the LZ77
|
||||
|
@ -69,7 +70,6 @@ stdenv.mkDerivation rec {
|
|||
in the following internet draft:
|
||||
http://www.ietf.org/id/draft-alakuijala-brotli
|
||||
'';
|
||||
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
platforms = platforms.all;
|
||||
|
|
Loading…
Reference in a new issue