19 , pulseaudioSupport ? true, libpulseaudio
20 , portaudioSupport ? false, portaudio
23 assert pulseaudioSupport -> libpulseaudio != null;
24 assert portaudioSupport -> portaudio != null;
25 # audio backends are mutually exclusive
26 assert !(pulseaudioSupport && portaudioSupport);
28 gnuradioMinimal.pkgs.mkDerivation rec {
32 src = fetchFromGitHub {
36 hash = "sha256-9VePsl/vaSTZ1TMyIeaGoZNrZv+O/7BxQ3ubD5S2EjY=";
46 gnuradioMinimal.unwrapped.logLib
51 gnuradioMinimal.unwrapped.boost
55 gnuradioMinimal.pkgs.osmosdr
58 ] ++ lib.optionals (gnuradioMinimal.hasFeature "gr-ctrlport") [
60 gnuradioMinimal.unwrapped.python.pkgs.thrift
61 ] ++ lib.optionals pulseaudioSupport [ libpulseaudio ]
62 ++ lib.optionals portaudioSupport [ portaudio ];
69 else if portaudioSupport
73 "-DLINUX_AUDIO_BACKEND=${audioBackend}"
76 # Prevent double-wrapping, inject wrapper args manually instead.
79 qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
83 description = "Software defined radio (SDR) receiver";
86 Gqrx is a software defined radio receiver powered by GNU Radio and the Qt
87 GUI toolkit. It can process I/Q data from many types of input devices,
88 including Funcube Dongle Pro/Pro+, rtl-sdr, HackRF, and Universal
89 Software Radio Peripheral (USRP) devices.
91 homepage = "https://gqrx.dk/";
92 # Some of the code comes from the Cutesdr project, with a BSD license, but
93 # it's currently unknown which version of the BSD license that is.
94 license = licenses.gpl3Plus;
95 platforms = platforms.linux; # should work on Darwin / macOS too
96 maintainers = with maintainers; [ bjornfor fpletz ];