forked from mirrors/nixpkgs
Merge pull request #188875 from wegank/libsoundio-darwin
libsoundio: fix build on darwin
This commit is contained in:
commit
db2735f491
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue