From aac2235e79c449667b357e83c1b0b934ca299799 Mon Sep 17 00:00:00 2001 From: Ivan Nikolaenko Date: Wed, 18 May 2022 14:27:32 +0300 Subject: [PATCH] valgrind: fix build error for aarch64+Musl Musl does not have __THROW macro from glibc Signed-off-by: Ivan Nikolaenko --- pkgs/development/tools/analysis/valgrind/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/tools/analysis/valgrind/default.nix b/pkgs/development/tools/analysis/valgrind/default.nix index fa29eae2db67..6f631045f00c 100644 --- a/pkgs/development/tools/analysis/valgrind/default.nix +++ b/pkgs/development/tools/analysis/valgrind/default.nix @@ -13,6 +13,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-3V40SG8aSD/3vnMAzBa01rJGkJh4d8MnjXl1NNZzjwI="; }; + patches = [ + # Fix checks on Musl. + # https://bugs.kde.org/show_bug.cgi?id=453929 + (fetchpatch { + url = "https://bugsfiles.kde.org/attachment.cgi?id=148912"; + sha256 = "Za+7K93pgnuEUQ+jDItEzWlN0izhbynX2crSOXBBY/I="; + }) + ]; + outputs = [ "out" "dev" "man" "doc" ]; hardeningDisable = [ "pie" "stackprotector" ];