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

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

42 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-12 00:54:35 +00:00
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, fftw, hamlib, libpulseaudio, libGL, libX11,
liquid-dsp, pkg-config, soapysdr-with-plugins, wxGTK32, enableDigitalLab ? false,
2022-10-11 23:03:35 +00:00
Cocoa, WebKit }:
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
};
2023-09-12 00:54:35 +00:00
patches = [
# Fix for liquid-dsp v1.50
(fetchpatch {
url = "https://github.com/cjcliffe/CubicSDR/commit/0e3a785bd2af56d18ff06b56579197b3e89b34ab.patch";
sha256 = "sha256-mPfNZcV3FnEtGVX4sCMSs+Qc3VeSBIRkpCyx24TKkcU=";
})
];
nativeBuildInputs = [ cmake pkg-config ];
2020-06-15 03:34:38 +00:00
2022-10-11 23:03:35 +00:00
buildInputs = [ fftw hamlib liquid-dsp soapysdr-with-plugins wxGTK32 ]
++ lib.optionals stdenv.isLinux [ libpulseaudio libGL libX11 ]
++ lib.optionals stdenv.isDarwin [ Cocoa WebKit ];
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 ];
2022-10-11 23:03:35 +00:00
platforms = platforms.unix;
2024-02-11 02:19:15 +00:00
mainProgram = "CubicSDR";
2019-04-27 16:29:20 +00:00
};
}