about summary refs log tree commit diff
path: root/pkgs/development/libraries/protobuf/generic-v3.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/protobuf/generic-v3.nix')
-rw-r--r--pkgs/development/libraries/protobuf/generic-v3.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/protobuf/generic-v3.nix b/pkgs/development/libraries/protobuf/generic-v3.nix
index 9dc7f70c2fe2..cfcaa5551526 100644
--- a/pkgs/development/libraries/protobuf/generic-v3.nix
+++ b/pkgs/development/libraries/protobuf/generic-v3.nix
@@ -25,7 +25,7 @@ mkProtobufDerivation = buildProtobuf: stdenv: stdenv.mkDerivation {
     chmod -R a+w gmock
     chmod -R a+w googletest
     ln -s ../googletest gmock/gtest
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace src/google/protobuf/testing/googletest.cc \
       --replace 'tmpnam(b)' '"'$TMPDIR'/foo"'
   '';