2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2017-02-27 21:36:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-27 01:49:23 +00:00
|
|
|
pname = "lzbench";
|
|
|
|
version = "1.8";
|
2017-02-27 21:36:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inikep";
|
2020-01-27 01:49:23 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0gxw9b3yjj3z2b1y9mx3yfhklyxpfmb8fjf9mfpg9hlbr9mcpff3";
|
2017-02-27 21:36:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp lzbench $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "In-memory benchmark of open-source LZ77/LZSS/LZMA compressors";
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|