mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #188875 from wegank/libsoundio-darwin
libsoundio: fix build on darwin
This commit is contained in:
commit
db2735f491
1 changed files with 6 additions and 2 deletions
|
@ -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