Skip to content

Commit

Permalink
Avoid changing of derivation for non-musl platform
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed May 12, 2019
1 parent 17c2884 commit 66cf1c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/misc/coreutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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";
}

0 comments on commit 66cf1c6

Please sign in to comment.