mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
mtdutils: fix cross build
This commit is contained in:
parent
2b3975d5d2
commit
93470276f9
@ -9,13 +9,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1lijl89l7hljx8xx70vrz9srd3h41v5gh4b0lvqnlv831yvyh5cd";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook cmocka pkgconfig ];
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ] ++ stdenv.lib.optional doCheck cmocka;
|
||||
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;
|
||||
|
||||
doCheck = true;
|
||||
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
|
||||
meta = {
|
||||
description = "Tools for MTD filesystems";
|
||||
|
Loading…
Reference in New Issue
Block a user