nixpkgs/pkgs/applications/radio/cubicsdr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
906 B
Nix
Raw Normal View History

2022-03-18 14:12:22 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp,
pkg-config, soapysdr-with-plugins, wxGTK31-gtk3, enableDigitalLab ? false }:
2019-04-27 16:29:20 +00:00
stdenv.mkDerivation rec {
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
};
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
meta = with lib; {
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;
};
}