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 ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
buildInputs = [ libjack2 libpulseaudio ]
|
buildInputs = [ libjack2 ]
|
||||||
++ lib.optional stdenv.isLinux alsa-lib
|
++ lib.optionals stdenv.isLinux [ libpulseaudio alsa-lib ]
|
||||||
++ lib.optional stdenv.isDarwin AudioUnit;
|
++ lib.optional stdenv.isDarwin AudioUnit;
|
||||||
|
|
||||||
|
cmakeFlags = lib.optionals stdenv.isDarwin [
|
||||||
|
"-DBUILD_TESTS=OFF"
|
||||||
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue