tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libvmaf: Fix build for FreeBSD
Audrey Dutcher
11 months ago
cc5629f8
16a4d9cc
+8
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
libvmaf
package.nix
+8
pkgs/by-name/li/libvmaf/package.nix
···
31
xxd
32
];
33
0
0
0
0
0
0
0
0
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 = [