summary refs log tree commit diff
path: root/pkgs/tools/compression/lzbench/default.nix
blob: df7700d41cb8758b89d7718809131bec48c1d19f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub }:

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;
  };
}