From aad641c836d73ed25e831ee10c63a25152e77bbf Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Thu, 6 Mar 2025 12:26:45 -0700 Subject: [PATCH] xvidcore: fix build for FreeBSD --- pkgs/by-name/xv/xvidcore/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/xv/xvidcore/package.nix b/pkgs/by-name/xv/xvidcore/package.nix index b3dcbbd79d5d..6b5e3e212040 100644 --- a/pkgs/by-name/xv/xvidcore/package.nix +++ b/pkgs/by-name/xv/xvidcore/package.nix @@ -31,7 +31,12 @@ stdenv.mkDerivation rec { [ ] # Undocumented darwin hack (assembly is probably disabled due to an # issue with nasm, however yasm is now used) - ++ lib.optional stdenv.hostPlatform.isDarwin "--enable-macosx_module --disable-assembly"; + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "--enable-macosx_module" + ] + ++ lib.optionals (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isFreeBSD) [ + "--disable-assembly" + ]; nativeBuildInputs = [ ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) yasm;