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-dHbDy/aIsqBQG1raeN9nM/QtiFgy+Qhoj/ThN8LV6gI=";
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";
85 Gqrx is a software defined radio receiver powered by GNU Radio and the Qt
86 GUI toolkit. It can process I/Q data from many types of input devices,
87 including Funcube Dongle Pro/Pro+, rtl-sdr, HackRF, and Universal
88 Software Radio Peripheral (USRP) devices.
90 homepage = "https://gqrx.dk/";
91 # Some of the code comes from the Cutesdr project, with a BSD license, but
92 # it's currently unknown which version of the BSD license that is.
93 license = licenses.gpl3Plus;
94 platforms = platforms.linux; # should work on Darwin / macOS too
95 maintainers = with maintainers; [ bjornfor fpletz ];