libvmaf: Fix build for FreeBSD

+8
+8
pkgs/by-name/li/libvmaf/package.nix
··· 31 xxd 32 ]; 33 34 mesonFlags = [ "-Denable_avx512=true" ]; 35 36 outputs = [
··· 31 xxd 32 ]; 33 34 + postPatch = lib.optionalString stdenv.hostPlatform.isFreeBSD '' 35 + substituteInPlace meson.build --replace-fail '_XOPEN_SOURCE=600' '_XOPEN_SOURCE=700' 36 + ''; 37 + 38 + env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD { 39 + NIX_CFLAGS_COMPILE = "-D__BSD_VISIBLE=1"; 40 + }; 41 + 42 mesonFlags = [ "-Denable_avx512=true" ]; 43 44 outputs = [