2018-12-25 14:04:13 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libdeflate";
|
2020-05-19 22:22:09 +00:00
|
|
|
version = "1.6";
|
2018-12-25 14:04:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ebiggers";
|
|
|
|
repo = "libdeflate";
|
|
|
|
rev = "v${version}";
|
2020-05-19 22:22:09 +00:00
|
|
|
sha256 = "1rhichmalqz7p1hiwvn6y0isralpbf0w5nyjp4lg0asawkxy9cww";
|
2018-12-25 14:04:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-05-19 22:23:11 +00:00
|
|
|
substituteInPlace Makefile --replace /usr/local $out
|
2018-12-25 14:04:13 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make programs/config.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast DEFLATE/zlib/gzip compressor and decompressor";
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ebiggers/libdeflate";
|
2020-01-11 09:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2018-12-25 14:04:13 +00:00
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
};
|
|
|
|
}
|