2017-02-17 20:01:46 +00:00
|
|
|
{ stdenv, fetchFromGitHub, zstd, lz4 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "zstdmt-${version}";
|
|
|
|
version = "0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "17i44kjc612sbs7diim9ih007zp7z9zs3q3yacd6dzlqya5vsp0w";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "zstdmt";
|
|
|
|
owner = "mcmilk";
|
|
|
|
};
|
|
|
|
|
2017-11-02 12:54:20 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */unix)
|
|
|
|
'';
|
2017-02-17 20:01:46 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zstd lz4
|
|
|
|
];
|
|
|
|
|
2017-04-08 03:55:25 +00:00
|
|
|
makeFlags = [ "CC=cc" "zstdmt" "lz4mt" ];
|
2017-02-17 20:01:46 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
mv zstdmt lz4mt $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multithreading Library for LZ4, LZ5 and ZStandard";
|
|
|
|
homepage = https://github.com/mcmilk/zstdmt;
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|