2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2017-02-27 22:36:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-27 02:49:23 +01:00
|
|
|
pname = "lzbench";
|
2020-09-05 09:00:27 +02:00
|
|
|
version = "1.8.1";
|
2017-02-27 22:36:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inikep";
|
2020-01-27 02:49:23 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-05 09:00:27 +02:00
|
|
|
sha256 = "19zlvcjb1qg4fx30rrp6m650660y35736j8szvdxmqh9ipkisyia";
|
2017-02-27 22:36:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp lzbench $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-27 22:36:27 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "In-memory benchmark of open-source LZ77/LZSS/LZMA compressors";
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|