1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/compression/lzbench/default.nix
Lluís Batlle i Rossell 9e7ce9010c
lzbench: init at 20170208
In-memory benchmark of several up-to-date compressors.

Signed-off-by: Lluís Batlle i Rossell <viric@viric.name>
2017-02-27 22:42:40 +01:00

29 lines
655 B
Nix

{ stdenv, fetchFromGitHub, glibc }:
stdenv.mkDerivation rec {
name = "lzbench-20170208";
src = fetchFromGitHub {
owner = "inikep";
repo = "lzbench";
rev = "d5e9b58";
sha256 = "16xj5fldwl639f0ys5rx54csbfvf35ja34bdl5m068hdn6dr47r5";
};
enableParallelBuilding = true;
buildInputs = stdenv.lib.optionals stdenv.isLinux [ stdenv.glibc.static ];
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;
};
}