2015-04-07 08:35:38 -07:00
|
|
|
{ stdenv, fetchFromGitHub, valgrind }:
|
2015-01-13 14:54:02 -08:00
|
|
|
|
2015-05-29 13:34:55 -07:00
|
|
|
let version = "130"; in
|
2015-01-13 14:54:02 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lz4-${version}";
|
|
|
|
|
2015-04-07 08:35:38 -07:00
|
|
|
src = fetchFromGitHub {
|
2015-05-29 13:34:55 -07:00
|
|
|
sha256 = "1050hwnbqyz2m26vayv942dh92689qp73chrbnqlg8awhlb5kyi5";
|
2015-04-07 08:35:38 -07:00
|
|
|
rev = "r${version}";
|
|
|
|
repo = "lz4";
|
|
|
|
owner = "Cyan4973";
|
2015-01-13 14:54:02 -08:00
|
|
|
};
|
|
|
|
|
2015-04-18 18:29:12 -07:00
|
|
|
buildInputs = stdenv.lib.optional doCheck valgrind;
|
2015-01-19 22:31:00 -08:00
|
|
|
|
2015-01-13 14:54:02 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
2015-06-16 17:32:49 -07:00
|
|
|
doCheck = false;
|
2015-01-19 22:31:00 -08:00
|
|
|
checkTarget = "test";
|
2015-05-30 03:56:04 -07:00
|
|
|
checkFlags = "-j1 -C programs"; # -j1 required since version 128, -C should be temporary
|
2015-01-19 22:31:00 -08:00
|
|
|
|
2015-01-13 14:54:02 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Extremely fast compression algorithm";
|
|
|
|
longDescription = ''
|
|
|
|
Very fast lossless compression algorithm, providing compression speed
|
|
|
|
at 400 MB/s per core, with near-linear scalability for multi-threaded
|
|
|
|
applications. It also features an extremely fast decoder, with speed in
|
|
|
|
multiple GB/s per core, typically reaching RAM speed limits on
|
|
|
|
multi-core systems.
|
|
|
|
'';
|
|
|
|
homepage = https://code.google.com/p/lz4/;
|
|
|
|
license = with licenses; [ bsd2 gpl2Plus ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
}
|