mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
31 lines
914 B
Nix
31 lines
914 B
Nix
{ stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
|
|
pkgconfig, soapysdr-with-plugins, wxGTK31-gtk3, enableDigitalLab ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cubicsdr";
|
|
version = "0.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cjcliffe";
|
|
repo = "CubicSDR";
|
|
rev = version;
|
|
sha256 = "1ihbn18bzdcdvwpa4hnb55ns38bj4b8xy53hkmra809f9qpbcjhn";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ fftw hamlib libpulseaudio libGL libX11 liquid-dsp soapysdr-with-plugins wxGTK31-gtk3 ];
|
|
|
|
cmakeFlags = [ "-DUSE_HAMLIB=ON" ]
|
|
++ stdenv.lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://cubicsdr.com";
|
|
description = "Software Defined Radio application";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ lasandell ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|
|
|