about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2021-03-28 12:28:52 -0500
committerThomas Tuegel <ttuegel@mailbox.org>2021-03-29 13:42:00 -0500
commit02ad6bbb42affc830979ef093a256fd3f52591c5 (patch)
treea351c3c4bd35647643990ac3e82300595f684d66 /pkgs/applications
parent63be3d6498de5106aa88dc4bdb54dd806070d8d9 (diff)
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.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/audio/aacgain/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/audio/aacgain/default.nix b/pkgs/applications/audio/aacgain/default.nix
index d4fc3fbe698ea..0f9b511d4553f 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