File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
pkgs/development/libraries/portaudio Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ stdenv.mkDerivation rec {
2222 pkg-config
2323 which
2424 ] ;
25- buildInputs = [
26- libjack2
27- ] ++ lib . optionals ( lib . meta . availableOn stdenv . hostPlatform alsa-lib ) [ alsa-lib ] ;
25+ buildInputs =
26+ [
27+ libjack2
28+ ]
29+ # Enabling alsa causes linux-only sources to be built
30+ ++ lib . optionals stdenv . hostPlatform . isLinux [ alsa-lib ] ;
2831
2932 configureFlags = [
3033 "--disable-mac-universal"
@@ -50,7 +53,7 @@ stdenv.mkDerivation rec {
5053 ''
5154 make install
5255 ''
53- + lib . optionalString ( lib . meta . availableOn stdenv . hostPlatform alsa-lib ) ''
56+ + lib . optionalString stdenv . hostPlatform . isLinux ''
5457 # fixup .pc file to find alsa library
5558 sed -i "s|-lasound|-L${ alsa-lib . out } /lib -lasound|" "$out/lib/pkgconfig/"*.pc
5659 ''
You can’t perform that action at this time.
0 commit comments