Merge pull request #188875 from wegank/libsoundio-darwin

libsoundio: fix build on darwin
This commit is contained in:
Mario Rodas 2022-09-01 19:05:42 -05:00 committed by GitHub
commit db2735f491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,10 +13,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ libjack2 libpulseaudio ]
++ lib.optional stdenv.isLinux alsa-lib
buildInputs = [ libjack2 ]
++ lib.optionals stdenv.isLinux [ libpulseaudio alsa-lib ]
++ lib.optional stdenv.isDarwin AudioUnit;
cmakeFlags = lib.optionals stdenv.isDarwin [
"-DBUILD_TESTS=OFF"
];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
meta = with lib; {