File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
pkgs/by-name/ro/roc-toolkit Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ stdenv.mkDerivation rec {
6868 ++ lib . optional ( ! libunwindSupport ) "--disable-libunwind"
6969 ++ lib . optional ( ! pulseaudioSupport ) "--disable-pulseaudio"
7070 ++ lib . optional ( ! libsndfileSupport ) "--disable-sndfile"
71+ ++ lib . optional stdenv . hostPlatform . isFreeBSD "--platform=unix"
7172 ++ (
7273 if ( ! openfecSupport ) then
7374 [ "--disable-openfec" ]
@@ -78,6 +79,11 @@ stdenv.mkDerivation rec {
7879 ]
7980 ) ;
8081
82+ env = lib . optionalAttrs stdenv . hostPlatform . isFreeBSD {
83+ NIX_CFLAGS_COMPILE = "-D_XOPEN_SOURCE=700 -D__BSD_VISIBLE" ;
84+ NIX_LDFLAGS = "-lpthread" ;
85+ } ;
86+
8187 meta = with lib ; {
8288 description = "Roc is a toolkit for real-time audio streaming over the network" ;
8389 homepage = "https://github.com/roc-streaming/roc-toolkit" ;
You can’t perform that action at this time.
0 commit comments