summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/compression/lzham
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2017-03-11 09:59:48 +0100
committerLluís Batlle i Rossell <viric@viric.name>2017-03-11 10:00:06 +0100
commit7aa5effaf64b0cb97657bca8a54d038b714baa05 (patch)
tree2b101e225bf9b8d4b81c8f637898b0763449329c /pkgs/tools/compression/lzham
parent8ac134321b5c525bf33d6136528fa13b8d5f2707 (diff)
lzham: init at 1.0
Compressor.
Diffstat (limited to 'pkgs/tools/compression/lzham')
-rw-r--r--pkgs/tools/compression/lzham/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/compression/lzham/default.nix b/pkgs/tools/compression/lzham/default.nix
new file mode 100644
index 000000000000..cdc155474a78
--- /dev/null
+++ b/pkgs/tools/compression/lzham/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub, cmake } :
+
+stdenv.mkDerivation rec {
+ name = "lzham-1.0";
+
+ src = fetchFromGitHub {
+ owner = "richgel999";
+ repo = "lzham_codec";
+ rev = "v1_0_release";
+ sha256 = "14c1zvzmp1ylp4pgayfdfk1kqjb23xj4f7ll1ra7b18wjxc9ja1v";
+ };
+
+ buildInputs = [ cmake ];
+
+ enableParallelBuilding = true;
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp ../bin_linux/lzhamtest $out/bin
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Lossless data compression codec with LZMA-like ratios but 1.5x-8x faster decompression speed";
+ homepage = https://github.com/richgel999/lzham_codec;
+ license = with licenses; [ mit ];
+ platforms = platforms.linux;
+ };
+}