Skip to content

Commit 11ca1c3

Browse files
authored
roc-toolkit: fix build for FreeBSD (#387692)
2 parents 111d908 + 0b724ce commit 11ca1c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/ro/roc-toolkit/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)