about summary refs log tree commit diff
path: root/pkgs/by-name/md/mdbook/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/md/mdbook/package.nix')
-rw-r--r--pkgs/by-name/md/mdbook/package.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/by-name/md/mdbook/package.nix b/pkgs/by-name/md/mdbook/package.nix
index aa8ff3dec363..4734394cd7e7 100644
--- a/pkgs/by-name/md/mdbook/package.nix
+++ b/pkgs/by-name/md/mdbook/package.nix
@@ -26,7 +26,7 @@ rustPlatform.buildRustPackage {
 
   nativeBuildInputs = [ installShellFiles ];
 
-  buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
 
   postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
     installShellCompletion --cmd mdbook \