Skip to content

Commit baf7e00

Browse files
rhelmotSuperSandro2000
authored andcommitted
portaudio: fix build for FreeBSD
1 parent 86f9676 commit baf7e00

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pkgs/development/libraries/portaudio/default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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
''

0 commit comments

Comments
 (0)