mtdutils: fix cross build
This commit is contained in:
parent
2b3975d5d2
commit
93470276f9
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user