roc-toolkit: fix cross compilation

This commit is contained in:
Nick Cao 2022-01-07 10:04:04 +08:00
parent 8aeafc25c9
commit 51f93cb778
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -40,7 +40,10 @@ stdenv.mkDerivation rec {
];
sconsFlags =
[ "--disable-sox"
[ "--build=${stdenv.buildPlatform.config}"
"--host=${stdenv.hostPlatform.config}"
"--prefix=${placeholder "out"}"
"--disable-sox"
"--disable-tests" ] ++
lib.optional (!libunwindSupport) "--disable-libunwind" ++
lib.optional (!pulseaudioSupport) "--disable-pulseaudio" ++
@ -52,10 +55,6 @@ stdenv.mkDerivation rec {
prePatch = lib.optionalString stdenv.isAarch64
"sed -i 's/c++98/c++11/g' SConstruct";
preConfigure = ''
sconsFlags+=" --prefix=$out"
'';
meta = with lib; {
description = "Roc is a toolkit for real-time audio streaming over the network";
homepage = "https://github.com/roc-streaming/roc-toolkit";