roc-toolkit: fix build on darwin (#337522)

This commit is contained in:
Artturin 2024-09-03 00:00:16 +03:00 committed by GitHub
commit 95c2f0ae8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,10 +51,10 @@ stdenv.mkDerivation rec {
++ lib.optional soxSupport sox
++ lib.optional libsndfileSupport libsndfile;
sconsFlags =
sconsFlags = lib.optionals (!stdenv.hostPlatform.isDarwin)
[ "--build=${stdenv.buildPlatform.config}"
"--host=${stdenv.hostPlatform.config}"
"--prefix=${placeholder "out"}" ] ++
"--host=${stdenv.hostPlatform.config}" ] ++
[ "--prefix=${placeholder "out"}" ] ++
lib.optional (!opensslSupport) "--disable-openssl" ++
lib.optional (!soxSupport) "--disable-sox" ++
lib.optional (!libunwindSupport) "--disable-libunwind" ++