1 { lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
2 pkg-config, soapysdr-with-plugins, wxGTK32, enableDigitalLab ? false,
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "0cyv1vk97x4i3h3hhh7dx8mv6d1ad0fypdbx5fl26bz661sr8j2n";
16 nativeBuildInputs = [ cmake pkg-config ];
18 buildInputs = [ fftw hamlib liquid-dsp soapysdr-with-plugins wxGTK32 ]
19 ++ lib.optionals stdenv.isLinux [ libpulseaudio libGL libX11 ]
20 ++ lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
22 cmakeFlags = [ "-DUSE_HAMLIB=ON" ]
23 ++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
26 homepage = "https://cubicsdr.com";
27 description = "Software Defined Radio application";
28 license = licenses.gpl2Plus;
29 maintainers = with maintainers; [ lasandell ];
30 platforms = platforms.unix;