2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config, soapysdr-with-plugins, wxGTK31-gtk3, enableDigitalLab ? false }:
|
2019-04-27 18:29:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cubicsdr";
|
2019-04-27 18:29:20 +02:00
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjcliffe";
|
|
|
|
repo = "CubicSDR";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1ihbn18bzdcdvwpa4hnb55ns38bj4b8xy53hkmra809f9qpbcjhn";
|
|
|
|
};
|
|
|
|
|
2020-05-14 15:49:55 +02:00
|
|
|
# Allow cubicsdr 0.2.5 to build with wxGTK 3.1.3
|
|
|
|
# these come from cubicsdr's master branch, subsequent releases may include them
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cjcliffe/CubicSDR/commit/65a160fa356ce9665dfe05c6bfc6754535e16743.patch";
|
|
|
|
sha256 = "0vbr5x9fnm09bws5crqcm6kkhr1bg5r0bc1pxnwwjyc6jpvqi6ad";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cjcliffe/CubicSDR/commit/f449a65457e35bf8260d0b16b8a47b6bc0ea2c7e.patch";
|
|
|
|
sha256 = "1zjvjmhm8ybi6i9pq7by3fj3mvx37dy7gj4gk23d79yrnl9mk25p";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cjcliffe/CubicSDR/commit/0540d08c2dea79b668b32b1a6d58f235d65ce9d2.patch";
|
|
|
|
sha256 = "07l7b82f779sbcj0jza0mg463ac1153bs9hn6ai388j7dm3lvasn";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-06-15 05:34:38 +02:00
|
|
|
|
|
|
|
buildInputs = [ fftw hamlib libpulseaudio libGL libX11 liquid-dsp soapysdr-with-plugins wxGTK31-gtk3 ];
|
2019-04-27 18:29:20 +02:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DUSE_HAMLIB=ON" ]
|
2021-01-15 06:42:41 +01:00
|
|
|
++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
|
2019-04-27 18:29:20 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://cubicsdr.com";
|
2019-04-27 18:29:20 +02:00
|
|
|
description = "Software Defined Radio application";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ lasandell ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|