From b949778bed83f359787cc9af76579b8155bf49b5 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 11 Jun 2023 19:29:51 +0000 Subject: [PATCH] dtc: fix cross Now takes into account that stdenv always disables tests when cross compiling. Link: https://github.com/dgibson/dtc/pull/103#pullrequestreview-1473442177 Fixes: 219b39707161 ("dtc: avoid building tests in case doCheck is disabled") --- pkgs/development/compilers/dtc/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix index 5ec3d6ec36cc..7e3829f82d29 100644 --- a/pkgs/development/compilers/dtc/default.nix +++ b/pkgs/development/compilers/dtc/default.nix @@ -83,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: { mesonAutoFeatures = "auto"; mesonFlags = [ (lib.mesonBool "static-build" stdenv.hostPlatform.isStatic) - (lib.mesonBool "tests" finalAttrs.doCheck) + (lib.mesonBool "tests" finalAttrs.finalPackage.doCheck) ]; # Checks are broken on aarch64 darwin