From 02ad6bbb42affc830979ef093a256fd3f52591c5 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sun, 28 Mar 2021 12:28:52 -0500 Subject: [PATCH] aacgain: build with -Wno-narrowing In recent GCC versions, -Wnarrowing is enabled by default, and compilation of aacgain fails due to -Werror. This commit disables the warning again. --- pkgs/applications/audio/aacgain/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/audio/aacgain/default.nix b/pkgs/applications/audio/aacgain/default.nix index d4fc3fbe698..0f9b511d455 100644 --- a/pkgs/applications/audio/aacgain/default.nix +++ b/pkgs/applications/audio/aacgain/default.nix @@ -12,6 +12,10 @@ stdenv.mkDerivation { hardeningDisable = [ "format" ]; + # -Wnarrowing is enabled by default in recent GCC versions, + # causing compilation to fail. + NIX_CFLAGS_COMPILE = "-Wno-narrowing"; + postPatch = '' ( cd mp4v2