abseil-cpp: build shared by default

This commit is contained in:
Mario Rodas 2021-03-20 04:20:00 +00:00
parent dc562d2588
commit c28308c29e
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake, static ? stdenv.hostPlatform.isStatic }:
stdenv.mkDerivation rec {
pname = "abseil-cpp";
@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_CXX_STANDARD=17"
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
];
nativeBuildInputs = [ cmake ];