depot/third_party/nixpkgs/pkgs/tools/compression/lzbench/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
581 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "lzbench";
version = "1.8";
src = fetchFromGitHub {
owner = "inikep";
repo = pname;
rev = "v${version}";
sha256 = "0gxw9b3yjj3z2b1y9mx3yfhklyxpfmb8fjf9mfpg9hlbr9mcpff3";
};
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;
};
}