summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-05-09 15:23:26 -0500
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-05-10 01:41:35 +0000
commiteb24cfd219072c266bd94cb6c4da748d0629bd21 (patch)
tree6dc9cafbc2a0a79dac50c3cf42039429609daf03
parentMerge pull request #172175 from NixOS/backport-172123-to-release-21.11 (diff)
downloadnixpkgs-origin/backport-172248-to-release-21.11.tar.gz
recutils: disable Clang "format" hardeningorigin/backport-172248-to-release-21.11
Remove the -Werror=format-security compiler option when using Clang, because recutils does not build with it enabled. (cherry picked from commit 3ece875b6007e383428aea745429f3ef8cbe3fff)
-rw-r--r--pkgs/tools/misc/recutils/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/tools/misc/recutils/default.nix b/pkgs/tools/misc/recutils/default.nix
index 972b60d36490..0299cf382181 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
];