arrow-cpp: fix build

Fixes: 1f6b095061 ('gtest: build shared library')
This commit is contained in:
Dmitry Kalinkin
2018-12-26 19:57:32 +03:00
parent 9d3fbbeda5
commit 956b4a87a8
3 changed files with 8 additions and 7 deletions
+4 -4
View File
@@ -1,4 +1,6 @@
{ stdenv, cmake, ninja, fetchFromGitHub }:
{ stdenv, cmake, ninja, fetchFromGitHub
, static ? false }:
stdenv.mkDerivation rec {
name = "gtest-${version}";
version = "1.8.1";
@@ -14,9 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ninja ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
cmakeFlags = stdenv.lib.optional (!static) "-DBUILD_SHARED_LIBS=ON";
meta = with stdenv.lib; {
description = "Google's framework for writing C++ tests";