rocksdb: Remove gflags dependency

GFlags are only used for the tools, which are not installed in any case.
This commit is contained in:
Luis Pedro Coelho 2019-07-17 15:04:31 +02:00 committed by worldofpeace
parent b8f84b24de
commit f178bee18e

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, lib, bzip2, cmake, gflags, lz4, snappy, zlib, zstd, enableLite ? false }:
{ stdenv, fetchFromGitHub, lib, bzip2, cmake, lz4, snappy, zlib, zstd, enableLite ? false }:
stdenv.mkDerivation rec {
pname = "rocksdb";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ bzip2 gflags lz4 snappy zlib zstd ];
buildInputs = [ bzip2 lz4 snappy zlib zstd ];
patches = [ ./0001-findzlib.patch ];
@ -27,6 +27,7 @@ stdenv.mkDerivation rec {
"-DWITH_SNAPPY=1"
"-DWITH_ZLIB=1"
"-DWITH_ZSTD=1"
"-DWITH_GFLAGS=0"
(lib.optional
(stdenv.hostPlatform.system == "i686-linux"
|| stdenv.hostPlatform.system == "x86_64-linux")