leveldb: Add snappy dependency (#89852)

This is practically required. Without this option, snappy compression is not supported, so
1) newly created leveldb stores will take more space than needed
2) existing snappy-compressed stores won't be opened by tools built without the snappy support
This commit is contained in:
Robin Palotai 2020-06-10 02:07:51 +02:00 committed by GitHub
parent 926e8631bc
commit 5ca9a2d15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fixDarwinDylibNames }:
{ stdenv, fetchFromGitHub, fixDarwinDylibNames, snappy }:
stdenv.mkDerivation rec {
pname = "leveldb";
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "01kxga1hv4wp94agx5vl3ybxfw5klqrdsrb6p6ywvnjmjxm8322y";
};
buildInputs = [ snappy ];
nativeBuildInputs = []
++ stdenv.lib.optional stdenv.isDarwin [ fixDarwinDylibNames ];