From 51cb863549988d947b555c98215b3a554fe06525 Mon Sep 17 00:00:00 2001 From: Magnus Holm Date: Thu, 23 Nov 2023 23:05:43 +0100 Subject: [PATCH] mdbtools: fix build on latest Clang Fixes NixOS/nixpkgs#269503 Co-authored-by: Emily Trau <13267947+emilytrau@users.noreply.github.com> --- pkgs/tools/misc/mdbtools/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/mdbtools/default.nix b/pkgs/tools/misc/mdbtools/default.nix index 95d8f9e3bb7b..327b58d8d78b 100644 --- a/pkgs/tools/misc/mdbtools/default.nix +++ b/pkgs/tools/misc/mdbtools/default.nix @@ -16,6 +16,8 @@ stdenv.mkDerivation rec { configureFlags = [ "--disable-scrollkeeper" ]; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=unused-but-set-variable"; + nativeBuildInputs = [ pkg-config bison flex autoreconfHook txt2man which ];