forked from mirrors/nixpkgs
Merge pull request #186616 from tobim/pkgs/glog-musl-static
pkgs{Musl,Static}.glog: fix build
This commit is contained in:
commit
8f29134fcf
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, gflags, perl }:
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, gflags, gtest, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "glog";
|
||||
|
@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ gtest ];
|
||||
|
||||
propagatedBuildInputs = [ gflags ];
|
||||
|
||||
cmakeFlags = [
|
||||
|
@ -25,6 +27,17 @@ stdenv.mkDerivation rec {
|
|||
enableParallelChecking = false;
|
||||
checkInputs = [ perl ];
|
||||
|
||||
GTEST_FILTER =
|
||||
let
|
||||
filteredTests = lib.optionals stdenv.hostPlatform.isMusl [
|
||||
"Symbolize.SymbolizeStackConsumption"
|
||||
"Symbolize.SymbolizeWithDemanglingStackConsumption"
|
||||
] ++ lib.optionals stdenv.hostPlatform.isStatic [
|
||||
"LogBacktraceAt.DoesBacktraceAtRightLineWhenEnabled"
|
||||
];
|
||||
in
|
||||
lib.optionalString doCheck "-${builtins.concatStringsSep ":" filteredTests}";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/google/glog";
|
||||
license = licenses.bsd3;
|
||||
|
|
Loading…
Reference in a new issue