mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +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 (!libunwindSupport) "--disable-libunwind"
|
||||||
++ lib.optional (!pulseaudioSupport) "--disable-pulseaudio"
|
++ lib.optional (!pulseaudioSupport) "--disable-pulseaudio"
|
||||||
++ lib.optional (!libsndfileSupport) "--disable-sndfile"
|
++ lib.optional (!libsndfileSupport) "--disable-sndfile"
|
||||||
|
++ lib.optional stdenv.hostPlatform.isFreeBSD "--platform=unix"
|
||||||
++ (
|
++ (
|
||||||
if (!openfecSupport) then
|
if (!openfecSupport) then
|
||||||
[ "--disable-openfec" ]
|
[ "--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; {
|
meta = with lib; {
|
||||||
description = "Roc is a toolkit for real-time audio streaming over the network";
|
description = "Roc is a toolkit for real-time audio streaming over the network";
|
||||||
homepage = "https://github.com/roc-streaming/roc-toolkit";
|
homepage = "https://github.com/roc-streaming/roc-toolkit";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue