mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
libvmaf: Fix build for FreeBSD
This commit is contained in:
parent
16a4d9cc0f
commit
cc5629f83e
1 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,14 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
xxd
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isFreeBSD ''
|
||||
substituteInPlace meson.build --replace-fail '_XOPEN_SOURCE=600' '_XOPEN_SOURCE=700'
|
||||
'';
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
|
||||
NIX_CFLAGS_COMPILE = "-D__BSD_VISIBLE=1";
|
||||
};
|
||||
|
||||
mesonFlags = [ "-Denable_avx512=true" ];
|
||||
|
||||
outputs = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue