Merge pull request #237100 from amjoseph-nixpkgs/pr/dtc/fixcross

dtc: fix cross
This commit is contained in:
Nick Cao 2023-06-12 23:02:51 -06:00 committed by GitHub
commit df55edeeb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,9 +86,15 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonBool "tests" finalAttrs.doCheck)
];
# Checks are broken on aarch64 darwin
# https://github.com/NixOS/nixpkgs/pull/118700#issuecomment-885892436
doCheck = !stdenv.isDarwin;
doCheck =
# Checks are broken on aarch64 darwin
# https://github.com/NixOS/nixpkgs/pull/118700#issuecomment-885892436
!stdenv.isDarwin &&
# we must explicitly disable this here so that mesonFlags receives
# `-Dtests=disabled`; without it meson will attempt to run
# hostPlatform binaries during the configurePhase.
(with stdenv; buildPlatform.canExecute hostPlatform);
meta = with lib; {
description = "Device Tree Compiler";