lol
at 15.09-beta 37 lines 1.1 kB view raw
1{ stdenv, fetchFromGitHub, valgrind }: 2 3let version = "131"; in 4stdenv.mkDerivation rec { 5 name = "lz4-${version}"; 6 7 src = fetchFromGitHub { 8 sha256 = "1bhvcq8fxxsqnpg5qa6k3nsyhq0nl0iarh08sqzclww27hlpyay2"; 9 rev = "r${version}"; 10 repo = "lz4"; 11 owner = "Cyan4973"; 12 }; 13 14 buildInputs = stdenv.lib.optional doCheck valgrind; 15 16 enableParallelBuilding = true; 17 18 makeFlags = "PREFIX=$(out)"; 19 20 doCheck = false; # tests take a very long time 21 checkTarget = "test"; 22 23 meta = with stdenv.lib; { 24 description = "Extremely fast compression algorithm"; 25 longDescription = '' 26 Very fast lossless compression algorithm, providing compression speed 27 at 400 MB/s per core, with near-linear scalability for multi-threaded 28 applications. It also features an extremely fast decoder, with speed in 29 multiple GB/s per core, typically reaching RAM speed limits on 30 multi-core systems. 31 ''; 32 homepage = https://code.google.com/p/lz4/; 33 license = with licenses; [ bsd2 gpl2Plus ]; 34 platforms = with platforms; linux; 35 maintainers = with maintainers; [ nckx ]; 36 }; 37}