about summary refs log tree commit diff
path: root/pkgs/development/libraries/glog/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/glog/default.nix')
-rw-r--r--pkgs/development/libraries/glog/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/glog/default.nix b/pkgs/development/libraries/glog/default.nix
index 53377022ad69..ac425092128c 100644
--- a/pkgs/development/libraries/glog/default.nix
+++ b/pkgs/development/libraries/glog/default.nix
@@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
         # Clang optimizes an expected allocation away.
         # See https://github.com/google/glog/issues/937
         "DeathNoAllocNewHook.logging"
-      ] ++ lib.optionals stdenv.isDarwin [
+      ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
         "LogBacktraceAt.DoesBacktraceAtRightLineWhenEnabled"
       ];
     in
@@ -51,9 +51,9 @@ stdenv.mkDerivation rec {
 
   checkPhase =
     let
-      excludedTests = lib.optionals stdenv.isDarwin [
+      excludedTests = lib.optionals stdenv.hostPlatform.isDarwin [
         "mock-log"
-      ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
+      ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
         "logging"   # works around segfaults on aarch64-darwin for now
       ];
       excludedTestsRegex = lib.optionalString (excludedTests != [ ]) "(${lib.concatStringsSep "|" excludedTests})";