Loading pkgs/development/libraries/gtest/default.nix +8 −2 Original line number Diff line number Diff line { lib, stdenv, cmake, ninja, fetchFromGitHub }: { lib , stdenv , fetchFromGitHub , cmake , ninja , static ? stdenv.hostPlatform.isStatic, }: stdenv.mkDerivation rec { pname = "gtest"; Loading @@ -20,7 +26,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ninja ]; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" ] ++ lib.optionals (stdenv.cc.isClang && (lib.versionOlder stdenv.cc.version "16.0")) [ # Enable C++17 support # https://github.com/google/googletest/issues/3081 Loading Loading
pkgs/development/libraries/gtest/default.nix +8 −2 Original line number Diff line number Diff line { lib, stdenv, cmake, ninja, fetchFromGitHub }: { lib , stdenv , fetchFromGitHub , cmake , ninja , static ? stdenv.hostPlatform.isStatic, }: stdenv.mkDerivation rec { pname = "gtest"; Loading @@ -20,7 +26,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ninja ]; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" ] ++ lib.optionals (stdenv.cc.isClang && (lib.versionOlder stdenv.cc.version "16.0")) [ # Enable C++17 support # https://github.com/google/googletest/issues/3081 Loading