openh264: fix build for FreeBSD (#387688)

This commit is contained in:
jopejoe1
2025-03-11 00:53:04 +01:00
committed by GitHub
+11 -1
View File
@@ -1,6 +1,7 @@
{
lib,
fetchFromGitHub,
fetchpatch,
gtest,
meson,
nasm,
@@ -26,6 +27,15 @@ stdenv.mkDerivation (finalAttrs: {
"dev"
];
patches = [
# https://github.com/cisco/openh264/pull/3867
(fetchpatch {
name = "freebsd-configure.patch";
url = "https://github.com/cisco/openh264/commit/ea8a1ad5791ee5c4e2ecf459aec235128d69b35b.patch";
hash = "sha256-pJvh9eRxFZQ+ob4WPu/x+jr1CCpgnug1uBViLfAtBDg=";
})
];
nativeBuildInputs = [
meson
nasm
@@ -58,6 +68,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.platforms.aarch64
++ lib.platforms.loongarch64
++ lib.platforms.riscv64
) (lib.platforms.linux ++ lib.platforms.darwin);
) lib.platforms.unix;
};
})