diff --git a/pkgs/applications/radio/limesuite/default.nix b/pkgs/applications/radio/limesuite/default.nix index 072d2d15b7ef..f98eb7639c1a 100644 --- a/pkgs/applications/radio/limesuite/default.nix +++ b/pkgs/applications/radio/limesuite/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchFromGitHub, cmake -, sqlite, wxGTK30-gtk3, libusb1, soapysdr +, sqlite, wxGTK32, libusb1, soapysdr , mesa_glu, libX11, gnuplot, fltk +, GLUT } : stdenv.mkDerivation rec { @@ -23,13 +24,15 @@ stdenv.mkDerivation rec { buildInputs = [ libusb1 sqlite - wxGTK30-gtk3 + wxGTK32 fltk gnuplot libusb1 soapysdr mesa_glu libX11 + ] ++ lib.optionals stdenv.isDarwin [ + GLUT ]; postInstall = '' @@ -42,7 +45,7 @@ stdenv.mkDerivation rec { homepage = "https://github.com/myriadrf/LimeSuite"; license = licenses.asl20; maintainers = with maintainers; [ markuskowa ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/applications/radio/soapyairspy/default.nix b/pkgs/applications/radio/soapyairspy/default.nix index 7e8a09d67b98..289a20d281cc 100644 --- a/pkgs/applications/radio/soapyairspy/default.nix +++ b/pkgs/applications/radio/soapyairspy/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub, cmake , airspy, soapysdr +, libobjc, IOKit, Security } : stdenv.mkDerivation rec { @@ -14,7 +15,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake ]; - buildInputs = [ airspy soapysdr ]; + buildInputs = [ airspy soapysdr ] + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; @@ -23,6 +25,6 @@ stdenv.mkDerivation rec { description = "SoapySDR plugin for Airspy devices"; license = licenses.mit; maintainers = with maintainers; [ markuskowa ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/applications/radio/soapyaudio/default.nix b/pkgs/applications/radio/soapyaudio/default.nix index 74924de241d3..7434791b69f0 100644 --- a/pkgs/applications/radio/soapyaudio/default.nix +++ b/pkgs/applications/radio/soapyaudio/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub, cmake, pkg-config , hamlib, rtaudio, alsa-lib, libpulseaudio, libjack2, libusb1, soapysdr +, Accelerate, CoreAudio } : stdenv.mkDerivation rec { @@ -14,7 +15,9 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ hamlib rtaudio alsa-lib libpulseaudio libjack2 libusb1 soapysdr ]; + buildInputs = [ hamlib rtaudio libjack2 libusb1 soapysdr ] + ++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ] + ++ lib.optionals stdenv.isDarwin [ Accelerate CoreAudio ]; cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" @@ -26,6 +29,6 @@ stdenv.mkDerivation rec { description = "SoapySDR plugin for amateur radio and audio devices"; license = licenses.mit; maintainers = with maintainers; [ numinit ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/applications/radio/soapybladerf/default.nix b/pkgs/applications/radio/soapybladerf/default.nix index dca5b7702c31..0f2b445b960e 100644 --- a/pkgs/applications/radio/soapybladerf/default.nix +++ b/pkgs/applications/radio/soapybladerf/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub, cmake, pkg-config , libbladeRF, soapysdr +, libobjc, IOKit, Security } : let @@ -17,7 +18,8 @@ in stdenv.mkDerivation { }; nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ libbladeRF soapysdr ]; + buildInputs = [ libbladeRF soapysdr ] + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; @@ -27,6 +29,6 @@ in stdenv.mkDerivation { description = "SoapySDR plugin for BladeRF devices"; license = licenses.lgpl21Only; maintainers = with maintainers; [ markuskowa ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/applications/radio/soapyhackrf/default.nix b/pkgs/applications/radio/soapyhackrf/default.nix index 1d2aaca9362b..be621c0d3135 100644 --- a/pkgs/applications/radio/soapyhackrf/default.nix +++ b/pkgs/applications/radio/soapyhackrf/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub, cmake, pkg-config , hackrf, soapysdr +, libobjc, IOKit, Security } : let @@ -17,7 +18,8 @@ in stdenv.mkDerivation { }; nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ hackrf soapysdr ]; + buildInputs = [ hackrf soapysdr ] + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; @@ -26,6 +28,6 @@ in stdenv.mkDerivation { description = "SoapySDR plugin for HackRF devices"; license = licenses.mit; maintainers = with maintainers; [ markuskowa ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/applications/radio/soapyremote/default.nix b/pkgs/applications/radio/soapyremote/default.nix index 1433b1e9abba..95f429aef43e 100644 --- a/pkgs/applications/radio/soapyremote/default.nix +++ b/pkgs/applications/radio/soapyremote/default.nix @@ -19,11 +19,13 @@ in stdenv.mkDerivation { cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; + NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-include sys/select.h" ]; + meta = with lib; { homepage = "https://github.com/pothosware/SoapyRemote"; description = "SoapySDR plugin for remote access to SDRs"; license = licenses.boost; maintainers = with maintainers; [ markuskowa ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/applications/radio/soapyuhd/default.nix b/pkgs/applications/radio/soapyuhd/default.nix index 864ceff4e1dd..9220df3f5f94 100644 --- a/pkgs/applications/radio/soapyuhd/default.nix +++ b/pkgs/applications/radio/soapyuhd/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchFromGitHub, cmake, pkg-config , uhd, boost, soapysdr +, libobjc, IOKit, Security } : stdenv.mkDerivation rec { @@ -14,7 +15,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ uhd boost soapysdr ]; + buildInputs = [ uhd boost soapysdr ] + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; @@ -27,6 +29,6 @@ stdenv.mkDerivation rec { description = "SoapySDR plugin for UHD devices"; license = licenses.gpl3Only; maintainers = with maintainers; [ markuskowa ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9cfdc1f70e02..9d8f7028bc30 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8805,7 +8805,9 @@ with pkgs; lidarr = callPackage ../servers/lidarr { }; - limesuite = callPackage ../applications/radio/limesuite { }; + limesuite = callPackage ../applications/radio/limesuite { + inherit (darwin.apple_sdk.frameworks) GLUT; + }; limesurvey = callPackage ../servers/limesurvey { }; @@ -21912,13 +21914,24 @@ with pkgs; snowcrash = callPackage ../tools/security/snowcrash { }; - soapyairspy = callPackage ../applications/radio/soapyairspy { }; + soapyairspy = callPackage ../applications/radio/soapyairspy { + inherit (darwin) libobjc; + inherit (darwin.apple_sdk.frameworks) IOKit Security; + }; - soapyaudio = callPackage ../applications/radio/soapyaudio { }; + soapyaudio = callPackage ../applications/radio/soapyaudio { + inherit (darwin.apple_sdk.frameworks) Accelerate CoreAudio; + }; - soapybladerf = callPackage ../applications/radio/soapybladerf { }; + soapybladerf = callPackage ../applications/radio/soapybladerf { + inherit (darwin) libobjc; + inherit (darwin.apple_sdk.frameworks) IOKit Security; + }; - soapyhackrf = callPackage ../applications/radio/soapyhackrf { }; + soapyhackrf = callPackage ../applications/radio/soapyhackrf { + inherit (darwin) libobjc; + inherit (darwin.apple_sdk.frameworks) IOKit Security; + }; soapysdr = callPackage ../applications/radio/soapysdr { }; @@ -21944,7 +21957,10 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) IOKit Security; }; - soapyuhd = callPackage ../applications/radio/soapyuhd { }; + soapyuhd = callPackage ../applications/radio/soapyuhd { + inherit (darwin) libobjc; + inherit (darwin.apple_sdk.frameworks) IOKit Security; + }; social-engineer-toolkit = callPackage ../tools/security/social-engineer-toolkit { };