Skip to content

Commit

Permalink
gtest: remove the "static" option
Browse files Browse the repository at this point in the history
pkgsStatic.gtest already has CMAKE_BUILD_SHARED set to OFF.
  • Loading branch information
veprbl committed Jan 3, 2020
1 parent 7e5b495 commit 7e2c821
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions pkgs/development/libraries/gtest/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ stdenv, cmake, ninja, fetchFromGitHub
, static ? false }:
{ stdenv, cmake, ninja, fetchFromGitHub }:

stdenv.mkDerivation rec {
pname = "gtest";
Expand All @@ -20,7 +19,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ninja ];

cmakeFlags = stdenv.lib.optional (!static) "-DBUILD_SHARED_LIBS=ON";
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];

meta = with stdenv.lib; {
description = "Google's framework for writing C++ tests";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10787,7 +10787,7 @@ in
arrayfire = callPackage ../development/libraries/arrayfire {};

arrow-cpp = callPackage ../development/libraries/arrow-cpp ({
gtest = gtest.override { static = true; };
inherit (pkgsStatic) gtest;
} // stdenv.lib.optionalAttrs (stdenv.hostPlatform.isi686 && stdenv.cc.isGNU) {
stdenv = overrideCC stdenv buildPackages.gcc6; # hidden symbol `__divmoddi4'
});
Expand Down
3 changes: 0 additions & 3 deletions pkgs/top-level/static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ in {
glog = super.glog.override {
static = true;
};
gtest = super.gtest.override {
static = true;
};
cdo = super.cdo.override {
enable_all_static = true;
};
Expand Down

0 comments on commit 7e2c821

Please sign in to comment.