2022-03-18 14:12:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config, soapysdr-with-plugins, wxGTK31-gtk3, enableDigitalLab ? false }:
|
2019-04-27 16:29:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cubicsdr";
|
2022-03-18 14:12:22 +00:00
|
|
|
version = "0.2.7";
|
2019-04-27 16:29:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjcliffe";
|
|
|
|
repo = "CubicSDR";
|
|
|
|
rev = version;
|
2022-03-18 14:12:22 +00:00
|
|
|
sha256 = "0cyv1vk97x4i3h3hhh7dx8mv6d1ad0fypdbx5fl26bz661sr8j2n";
|
2019-04-27 16:29:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-06-15 03:34:38 +00:00
|
|
|
|
|
|
|
buildInputs = [ fftw hamlib libpulseaudio libGL libX11 liquid-dsp soapysdr-with-plugins wxGTK31-gtk3 ];
|
2019-04-27 16:29:20 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DUSE_HAMLIB=ON" ]
|
2021-01-15 05:42:41 +00:00
|
|
|
++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
|
2019-04-27 16:29:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://cubicsdr.com";
|
2019-04-27 16:29:20 +00:00
|
|
|
description = "Software Defined Radio application";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ lasandell ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|