python312Packages.llm-gguf: init at 0.2 (#364926)
[NixPkgs.git] / pkgs / applications / radio / cubicsdr / default.nix
blob2fe9dffa6f8b123f02bcd04c8c89741d9a64ac32
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7   fftw,
8   hamlib,
9   libpulseaudio,
10   libGL,
11   libX11,
12   liquid-dsp,
13   pkg-config,
14   soapysdr-with-plugins,
15   wxGTK32,
16   enableDigitalLab ? false,
17   Cocoa,
18   WebKit,
21 stdenv.mkDerivation rec {
22   pname = "cubicsdr";
23   version = "0.2.7";
25   src = fetchFromGitHub {
26     owner = "cjcliffe";
27     repo = "CubicSDR";
28     rev = version;
29     sha256 = "0cyv1vk97x4i3h3hhh7dx8mv6d1ad0fypdbx5fl26bz661sr8j2n";
30   };
32   patches = [
33     # Fix for liquid-dsp v1.50
34     (fetchpatch {
35       url = "https://github.com/cjcliffe/CubicSDR/commit/0e3a785bd2af56d18ff06b56579197b3e89b34ab.patch";
36       sha256 = "sha256-mPfNZcV3FnEtGVX4sCMSs+Qc3VeSBIRkpCyx24TKkcU=";
37     })
38   ];
40   nativeBuildInputs = [
41     cmake
42     pkg-config
43   ];
45   buildInputs =
46     [
47       fftw
48       hamlib
49       liquid-dsp
50       soapysdr-with-plugins
51       wxGTK32
52     ]
53     ++ lib.optionals stdenv.hostPlatform.isLinux [
54       libpulseaudio
55       libGL
56       libX11
57     ]
58     ++ lib.optionals stdenv.hostPlatform.isDarwin [
59       Cocoa
60       WebKit
61     ];
63   cmakeFlags = [ "-DUSE_HAMLIB=ON" ] ++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON";
65   meta = with lib; {
66     homepage = "https://cubicsdr.com";
67     description = "Software Defined Radio application";
68     license = licenses.gpl2Plus;
69     maintainers = with maintainers; [ lasandell ];
70     platforms = platforms.unix;
71     mainProgram = "CubicSDR";
72   };