From 27fe8b4a3931d0a8eb617ffd715e59fd55cd2bdd Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 20 Jan 2023 22:17:19 +0200 Subject: cross-compilation.chapter.md: correct doCheck conditional --- doc/stdenv/cross-compilation.chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/stdenv/cross-compilation.chapter.md b/doc/stdenv/cross-compilation.chapter.md index 5f7ff513959a..e659e1803807 100644 --- a/doc/stdenv/cross-compilation.chapter.md +++ b/doc/stdenv/cross-compilation.chapter.md @@ -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} -- cgit v1.2.3