From 66cf1c68a6c5a6e37fa4944d08d1db5fa489d63f Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Fri, 10 May 2019 23:09:12 +0200 Subject: [PATCH] Avoid changing of derivation for non-musl platform --- pkgs/tools/misc/coreutils/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 68a4044dd2c..f83a2b94071 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -57,9 +57,6 @@ stdenv.mkDerivation rec { outputs = [ "out" "info" ]; - # Work around a bogus warning in conjunction with musl. - NIX_CFLAGS_COMPILE = optional stdenv.hostPlatform.isMusl "-Wno-error"; - nativeBuildInputs = [ perl xz.bin ] ++ optionals stdenv.hostPlatform.isCygwin [ autoreconfHook texinfo ] # due to patch ++ optionals stdenv.hostPlatform.isMusl [ autoreconfHook bison ]; # due to patch @@ -138,4 +135,7 @@ stdenv.mkDerivation rec { maintainers = [ maintainers.eelco ]; }; +} // optionalAttrs stdenv.hostPlatform.isMusl { + # Work around a bogus warning in conjunction with musl. + NIX_CFLAGS_COMPILE = "-Wno-error"; }