Skip to content

Commit c522fe6

Browse files
authored
xvidcore: fix build for FreeBSD (#387697)
2 parents 9b62d5e + aad641c commit c522fe6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkgs/by-name/xv/xvidcore/package.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ stdenv.mkDerivation rec {
3131
[ ]
3232
# Undocumented darwin hack (assembly is probably disabled due to an
3333
# issue with nasm, however yasm is now used)
34-
++ lib.optional stdenv.hostPlatform.isDarwin "--enable-macosx_module --disable-assembly";
34+
++ lib.optionals stdenv.hostPlatform.isDarwin [
35+
"--enable-macosx_module"
36+
]
37+
++ lib.optionals (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isFreeBSD) [
38+
"--disable-assembly"
39+
];
3540

3641
nativeBuildInputs = [ ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) yasm;
3742

0 commit comments

Comments
 (0)