@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, cmake } :
2+
3+stdenv.mkDerivation rec {
4+ name = "lzham-1.0";
5+
6+ src = fetchFromGitHub {
7+ owner = "richgel999";
8+ repo = "lzham_codec";
9+ rev = "v1_0_release";
10+ sha256 = "14c1zvzmp1ylp4pgayfdfk1kqjb23xj4f7ll1ra7b18wjxc9ja1v";
11+ };
12+
13+ buildInputs = [ cmake ];
14+
15+ enableParallelBuilding = true;
16+
17+ installPhase = ''
18+ mkdir -p $out/bin
19+ cp ../bin_linux/lzhamtest $out/bin
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "Lossless data compression codec with LZMA-like ratios but 1.5x-8x faster decompression speed";
24+ homepage = https://github.com/richgel999/lzham_codec;
25+ license = with licenses; [ mit ];
26+ platforms = platforms.linux;
27+ };
28+}