xvidcore: fix build for FreeBSD (#387697)

This commit is contained in:
Audrey Dutcher
2025-03-10 00:49:02 -07:00
committed by GitHub
+6 -1
View File
@@ -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;