cross-compilation.chapter.md: correct doCheck conditional

master
Artturin 2023-01-20 22:17:19 +02:00
parent 513a26c7c7
commit 27fe8b4a39
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ depsBuildBuild = [ buildPackages.stdenv.cc ];
Add the following to your `mkDerivation` invocation.
```nix
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
```
#### Package using Meson needs to run binaries for the host platform during build. {#cross-meson-runs-host-code}