blob: d7a4aa91fb541a150c2f353aefe6fdd337ce9443 (
plain) (
blame)
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
32
33
|
{ stdenv, lib, fetchFromGitHub, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
pname = "libdeflate";
version = "1.7";
src = fetchFromGitHub {
owner = "ebiggers";
repo = "libdeflate";
rev = "v${version}";
sha256 = "1hnn1yd9s5h92xs72y73izak47kdz070kxkw3kyz2d3az6brfdgh";
};
postPatch = ''
substituteInPlace Makefile --replace /usr/local $out
'';
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
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.unix;
maintainers = with maintainers; [ orivej ];
};
}
|