diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2022-10-14 20:19:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 20:19:12 -0500 |
commit | a7587b1f9439372dbc3c32077d2099788ea40b99 (patch) | |
tree | e2bdf17c3f8b56ce66359822acb4513914f56a5e /pkgs/applications/radio | |
parent | 3b610fb1d5933639182641ccf51a575d3d5ad865 (diff) | |
parent | 89468762953ce3c09b09c750ac3bb2586b4fb95e (diff) |
Merge pull request #195596 from wegank/cubicsdr-darwin
cubicsdr: fix build on darwin
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r-- | pkgs/applications/radio/cubicsdr/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/radio/cubicsdr/default.nix b/pkgs/applications/radio/cubicsdr/default.nix index 23b64e124c553..400927aed4d7a 100644 --- a/pkgs/applications/radio/cubicsdr/default.nix +++ b/pkgs/applications/radio/cubicsdr/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp, - pkg-config, soapysdr-with-plugins, wxGTK31-gtk3, enableDigitalLab ? false }: + pkg-config, soapysdr-with-plugins, wxGTK32, enableDigitalLab ? false, + Cocoa, WebKit }: stdenv.mkDerivation rec { pname = "cubicsdr"; @@ -14,7 +15,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ fftw hamlib libpulseaudio libGL libX11 liquid-dsp soapysdr-with-plugins wxGTK31-gtk3 ]; + buildInputs = [ fftw hamlib liquid-dsp soapysdr-with-plugins wxGTK32 ] + ++ lib.optionals stdenv.isLinux [ libpulseaudio libGL libX11 ] + ++ lib.optionals stdenv.isDarwin [ Cocoa WebKit ]; cmakeFlags = [ "-DUSE_HAMLIB=ON" ] ++ lib.optional enableDigitalLab "-DENABLE_DIGITAL_LAB=ON"; @@ -24,6 +27,6 @@ stdenv.mkDerivation rec { description = "Software Defined Radio application"; license = licenses.gpl2Plus; maintainers = with maintainers; [ lasandell ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |