diff options
author | annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> | 2023-11-26 13:17:00 +0000 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-11-29 04:27:28 +0000 |
commit | 015010b7082323b2fd7ce264e8d5544298f9dc19 (patch) | |
tree | 57ff027bb5147880bf34cacdfad96d6428c39fa1 | |
parent | 36e04f1e2f0cba65a40a547d9a1166b03b8c45af (diff) |
liberasurecode: ignore strict prototypes on clang; fix darwin
(cherry picked from commit 0d220827ac37547654418b9e1880e225521ee562)
-rw-r--r-- | pkgs/applications/misc/liberasurecode/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/misc/liberasurecode/default.nix b/pkgs/applications/misc/liberasurecode/default.nix index 289423c61220e..5910bc3eb532e 100644 --- a/pkgs/applications/misc/liberasurecode/default.nix +++ b/pkgs/applications/misc/liberasurecode/default.nix @@ -29,7 +29,11 @@ stdenv.mkDerivation rec { buildInputs = [ zlib ]; - configureFlags = [ "--enable-doxygen" ]; + configureFlags = [ + "--enable-doxygen" + ] ++ lib.optionals stdenv.cc.isClang [ + "CFLAGS=-Wno-error=strict-prototypes" + ]; postInstall = '' # remove useless man pages about directories |