From 2b22a409c36807d453fe2b27444441acc5b6833e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 23 May 2022 14:19:15 +0000 Subject: [PATCH] linuxPackages.netatop: fix build with Linux 5.18 With 5.18, implicit fallthrough is an error, and netatop hasn't caught up yet. --- pkgs/os-specific/linux/netatop/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/netatop/default.nix b/pkgs/os-specific/linux/netatop/default.nix index dec1399d1695..b892292477ce 100644 --- a/pkgs/os-specific/linux/netatop/default.nix +++ b/pkgs/os-specific/linux/netatop/default.nix @@ -16,6 +16,7 @@ stdenv.mkDerivation { buildInputs = [ kmod zlib ]; hardeningDisable = [ "pic" ]; + NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ]; patches = [ # fix paths in netatop.service