cross-compilation.chapter.md: correct doCheck conditional

This commit is contained in:
Artturin 2023-01-20 22:17:19 +02:00
parent 513a26c7c7
commit 27fe8b4a39

View file

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