mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 17:49:58 +03:00
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: 219b397071
("dtc: avoid building tests in case doCheck is disabled")
This commit is contained in:
parent
748209b906
commit
b949778bed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user