lol
1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "lzbench-20170208";
5
6 src = fetchFromGitHub {
7 owner = "inikep";
8 repo = "lzbench";
9 rev = "d5e9b58";
10 sha256 = "16xj5fldwl639f0ys5rx54csbfvf35ja34bdl5m068hdn6dr47r5";
11 };
12
13 enableParallelBuilding = true;
14
15 buildInputs = stdenv.lib.optionals stdenv.isLinux [ stdenv.glibc.static ];
16
17 installPhase = ''
18 mkdir -p $out/bin
19 cp lzbench $out/bin
20 '';
21
22 meta = with stdenv.lib; {
23 inherit (src.meta) homepage;
24 description = "In-memory benchmark of open-source LZ77/LZSS/LZMA compressors";
25 license = licenses.free;
26 platforms = platforms.all;
27 };
28}