From 5ca9a2d15bd12d87d0cf9f260addcb4d38b93da3 Mon Sep 17 00:00:00 2001 From: Robin Palotai Date: Wed, 10 Jun 2020 02:07:51 +0200 Subject: [PATCH] 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 --- pkgs/development/libraries/leveldb/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/leveldb/default.nix b/pkgs/development/libraries/leveldb/default.nix index b64b426a6403..33eca603c267 100644 --- a/pkgs/development/libraries/leveldb/default.nix +++ b/pkgs/development/libraries/leveldb/default.nix @@ -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 ];