diff options
author | Andrew Childs <lorne@cons.org.nz> | 2019-12-28 20:35:49 +0900 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-12-30 17:21:39 +0100 |
commit | 93470276f953d162d53d2594927884fce17ff0a6 (patch) | |
tree | 3835d94157e7540aa4d47232eccc577fc794f60b /pkgs/tools/filesystems/mtdutils/default.nix | |
parent | 2b3975d5d2cb7cf2f9214bd36aa8b783baaf358f (diff) | |
download | nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.tar nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.tar.gz nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.tar.bz2 nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.tar.lz nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.tar.xz nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.tar.zst nixpkgs-93470276f953d162d53d2594927884fce17ff0a6.zip |
mtdutils: fix cross build
Diffstat (limited to 'pkgs/tools/filesystems/mtdutils/default.nix')
-rw-r--r-- | pkgs/tools/filesystems/mtdutils/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/tools/filesystems/mtdutils/default.nix b/pkgs/tools/filesystems/mtdutils/default.nix index 0461c732e1a..3b355c92226 100644 --- a/pkgs/tools/filesystems/mtdutils/default.nix +++ b/pkgs/tools/filesystems/mtdutils/default.nix @@ -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"; |