about summary refs log tree commit diff
path: root/pkgs/tools/text/pinyin-tool/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/pinyin-tool/default.nix')
-rw-r--r--pkgs/tools/text/pinyin-tool/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/text/pinyin-tool/default.nix b/pkgs/tools/text/pinyin-tool/default.nix
index b2427e4f5f4b..e287c2a5cc79 100644
--- a/pkgs/tools/text/pinyin-tool/default.nix
+++ b/pkgs/tools/text/pinyin-tool/default.nix
@@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-jeRKtKv8Lg/ritl42dMbEQpXaNlCIaHTrw0xtPQitMc=";
 
-  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
 
   meta = with lib; {
     description = "Simple command line tool for converting Chinese characters to space-separate pinyin words";