mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
roc-toolkit: fix build for FreeBSD (#387692)
This commit is contained in:
commit
11ca1c3d1d
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,7 @@ stdenv.mkDerivation rec {
|
|||
++ lib.optional (!libunwindSupport) "--disable-libunwind"
|
||||
++ lib.optional (!pulseaudioSupport) "--disable-pulseaudio"
|
||||
++ lib.optional (!libsndfileSupport) "--disable-sndfile"
|
||||
++ lib.optional stdenv.hostPlatform.isFreeBSD "--platform=unix"
|
||||
++ (
|
||||
if (!openfecSupport) then
|
||||
[ "--disable-openfec" ]
|
||||
|
@ -78,6 +79,11 @@ stdenv.mkDerivation rec {
|
|||
]
|
||||
);
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
|
||||
NIX_CFLAGS_COMPILE = "-D_XOPEN_SOURCE=700 -D__BSD_VISIBLE";
|
||||
NIX_LDFLAGS = "-lpthread";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Roc is a toolkit for real-time audio streaming over the network";
|
||||
homepage = "https://github.com/roc-streaming/roc-toolkit";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue