From f7398ad53a8f56e1e314e876e0a98ae4c4390416 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 26 Nov 2024 22:19:07 +0100 Subject: [PATCH] openh264: disable -Werror -Werror isn't suitable for distro builds because it means new breakages can appear before upstream has a chance to do anything about them, and they might not be worth failing the build over. Fixes building for musl. Link: https://github.com/cisco/openh264/pull/3809 --- pkgs/by-name/op/openh264/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/op/openh264/package.nix b/pkgs/by-name/op/openh264/package.nix index 18766f628c124..a8a74377e4ffb 100644 --- a/pkgs/by-name/op/openh264/package.nix +++ b/pkgs/by-name/op/openh264/package.nix @@ -22,6 +22,10 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "dev" ]; + postPatch = '' + substituteInPlace meson.build --replace-fail "'-Werror'," "" + ''; + nativeBuildInputs = [ meson nasm