gqrx: add darwin support
This commit is contained in:
parent
ae06b9c2d8
commit
f962ed7c2f
@ -17,9 +17,10 @@
|
|||||||
# drivers (optional):
|
# drivers (optional):
|
||||||
rtl-sdr,
|
rtl-sdr,
|
||||||
hackrf,
|
hackrf,
|
||||||
pulseaudioSupport ? true,
|
stdenv,
|
||||||
|
pulseaudioSupport ? !stdenv.hostPlatform.isDarwin,
|
||||||
libpulseaudio,
|
libpulseaudio,
|
||||||
portaudioSupport ? false,
|
portaudioSupport ? stdenv.hostPlatform.isDarwin,
|
||||||
portaudio,
|
portaudio,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -50,16 +51,18 @@ gnuradioMinimal.pkgs.mkDerivation rec {
|
|||||||
gnuradioMinimal.unwrapped.logLib
|
gnuradioMinimal.unwrapped.logLib
|
||||||
mpir
|
mpir
|
||||||
fftwFloat
|
fftwFloat
|
||||||
alsa-lib
|
|
||||||
libjack2
|
libjack2
|
||||||
gnuradioMinimal.unwrapped.boost
|
gnuradioMinimal.unwrapped.boost
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qtwayland
|
|
||||||
gnuradioMinimal.pkgs.osmosdr
|
gnuradioMinimal.pkgs.osmosdr
|
||||||
rtl-sdr
|
rtl-sdr
|
||||||
hackrf
|
hackrf
|
||||||
]
|
]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
|
alsa-lib
|
||||||
|
qtwayland
|
||||||
|
]
|
||||||
++ lib.optionals (gnuradioMinimal.hasFeature "gr-ctrlport") [
|
++ lib.optionals (gnuradioMinimal.hasFeature "gr-ctrlport") [
|
||||||
thrift
|
thrift
|
||||||
gnuradioMinimal.unwrapped.python.pkgs.thrift
|
gnuradioMinimal.unwrapped.python.pkgs.thrift
|
||||||
@ -78,7 +81,7 @@ gnuradioMinimal.pkgs.mkDerivation rec {
|
|||||||
"Gr-audio";
|
"Gr-audio";
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"-DLINUX_AUDIO_BACKEND=${audioBackend}"
|
"-D${if stdenv.hostPlatform.isDarwin then "OSX" else "LINUX"}_AUDIO_BACKEND=${audioBackend}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Prevent double-wrapping, inject wrapper args manually instead.
|
# Prevent double-wrapping, inject wrapper args manually instead.
|
||||||
@ -100,7 +103,7 @@ gnuradioMinimal.pkgs.mkDerivation rec {
|
|||||||
# Some of the code comes from the Cutesdr project, with a BSD license, but
|
# Some of the code comes from the Cutesdr project, with a BSD license, but
|
||||||
# it's currently unknown which version of the BSD license that is.
|
# it's currently unknown which version of the BSD license that is.
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux; # should work on Darwin / macOS too
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = with maintainers; [
|
maintainers = with maintainers; [
|
||||||
bjornfor
|
bjornfor
|
||||||
fpletz
|
fpletz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user