mtdutils: fix cross build

This commit is contained in:
Andrew Childs 2019-12-28 20:35:49 +09:00 committed by Bjørn Forsman
parent 2b3975d5d2
commit 93470276f9

View File

@ -9,13 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "1lijl89l7hljx8xx70vrz9srd3h41v5gh4b0lvqnlv831yvyh5cd"; sha256 = "1lijl89l7hljx8xx70vrz9srd3h41v5gh4b0lvqnlv831yvyh5cd";
}; };
nativeBuildInputs = [ autoreconfHook cmocka pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ] ++ stdenv.lib.optional doCheck cmocka;
buildInputs = [ acl libuuid lzo zlib zstd ]; buildInputs = [ acl libuuid lzo zlib zstd ];
configureFlags = [ "--enable-unit-tests" "--enable-tests" ]; configureFlags = [
(stdenv.lib.enableFeature doCheck "unit-tests")
(stdenv.lib.enableFeature doCheck "tests")
];
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true; doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
meta = { meta = {
description = "Tools for MTD filesystems"; description = "Tools for MTD filesystems";