From 3ece875b6007e383428aea745429f3ef8cbe3fff Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Mon, 9 May 2022 15:23:26 -0500 Subject: [PATCH] recutils: disable Clang "format" hardening Remove the -Werror=format-security compiler option when using Clang, because recutils does not build with it enabled. --- pkgs/tools/misc/recutils/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/recutils/default.nix b/pkgs/tools/misc/recutils/default.nix index 972b60d3649..0299cf38218 100644 --- a/pkgs/tools/misc/recutils/default.nix +++ b/pkgs/tools/misc/recutils/default.nix @@ -15,6 +15,8 @@ stdenv.mkDerivation rec { hash = "sha256-YwFZKwAgwUtFZ1fvXUNNSfYCe45fOkmdEzYvIFxIbg4="; }; + hardeningDisable = lib.optional stdenv.cc.isClang "format"; + buildInputs = [ curl ];