blob: b06a0a9450ab60a1155dc66672f5082a81f89702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libdeflate";
version = "1.3";
src = fetchFromGitHub {
owner = "ebiggers";
repo = "libdeflate";
rev = "v${version}";
sha256 = "019xsz5dnbpxiz29j3zqsxyi4ksjkkygi6a2zyc8fxbm8lvaa9ar";
};
postPatch = ''
substituteInPlace Makefile --replace /usr $out
'';
configurePhase = ''
make programs/config.h
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Fast DEFLATE/zlib/gzip compressor and decompressor";
license = licenses.mit;
homepage = https://github.com/ebiggers/libdeflate;
platforms = platforms.linux;
maintainers = with maintainers; [ orivej ];
};
}
|