Merge pull request #194717 from wegank/soapysdr-with-plugins-darwin

soapysdr-with-plugins: add darwin support

authored by

markuskowa and committed by
GitHub
be81e234 598f83eb

+52 -20
+6 -3
pkgs/applications/radio/limesuite/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake 2 - , sqlite, wxGTK30-gtk3, libusb1, soapysdr 2 + , sqlite, wxGTK32, libusb1, soapysdr 3 3 , mesa_glu, libX11, gnuplot, fltk 4 + , GLUT 4 5 } : 5 6 6 7 stdenv.mkDerivation rec { ··· 23 24 buildInputs = [ 24 25 libusb1 25 26 sqlite 26 - wxGTK30-gtk3 27 + wxGTK32 27 28 fltk 28 29 gnuplot 29 30 libusb1 30 31 soapysdr 31 32 mesa_glu 32 33 libX11 34 + ] ++ lib.optionals stdenv.isDarwin [ 35 + GLUT 33 36 ]; 34 37 35 38 postInstall = '' ··· 42 45 homepage = "https://github.com/myriadrf/LimeSuite"; 43 46 license = licenses.asl20; 44 47 maintainers = with maintainers; [ markuskowa ]; 45 - platforms = platforms.linux; 48 + platforms = platforms.unix; 46 49 }; 47 50 } 48 51
+4 -2
pkgs/applications/radio/soapyairspy/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake 2 2 , airspy, soapysdr 3 + , libobjc, IOKit, Security 3 4 } : 4 5 5 6 stdenv.mkDerivation rec { ··· 14 15 }; 15 16 16 17 nativeBuildInputs = [ cmake ]; 17 - buildInputs = [ airspy soapysdr ]; 18 + buildInputs = [ airspy soapysdr ] 19 + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; 18 20 19 21 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 20 22 ··· 23 25 description = "SoapySDR plugin for Airspy devices"; 24 26 license = licenses.mit; 25 27 maintainers = with maintainers; [ markuskowa ]; 26 - platforms = platforms.linux; 28 + platforms = platforms.unix; 27 29 }; 28 30 }
+5 -2
pkgs/applications/radio/soapyaudio/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config 2 2 , hamlib, rtaudio, alsa-lib, libpulseaudio, libjack2, libusb1, soapysdr 3 + , Accelerate, CoreAudio 3 4 } : 4 5 5 6 stdenv.mkDerivation rec { ··· 14 15 }; 15 16 16 17 nativeBuildInputs = [ cmake pkg-config ]; 17 - buildInputs = [ hamlib rtaudio alsa-lib libpulseaudio libjack2 libusb1 soapysdr ]; 18 + buildInputs = [ hamlib rtaudio libjack2 libusb1 soapysdr ] 19 + ++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ] 20 + ++ lib.optionals stdenv.isDarwin [ Accelerate CoreAudio ]; 18 21 19 22 cmakeFlags = [ 20 23 "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ··· 26 29 description = "SoapySDR plugin for amateur radio and audio devices"; 27 30 license = licenses.mit; 28 31 maintainers = with maintainers; [ numinit ]; 29 - platforms = platforms.linux; 32 + platforms = platforms.unix; 30 33 }; 31 34 }
+4 -2
pkgs/applications/radio/soapybladerf/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config 2 2 , libbladeRF, soapysdr 3 + , libobjc, IOKit, Security 3 4 } : 4 5 5 6 let ··· 17 18 }; 18 19 19 20 nativeBuildInputs = [ cmake pkg-config ]; 20 - buildInputs = [ libbladeRF soapysdr ]; 21 + buildInputs = [ libbladeRF soapysdr ] 22 + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; 21 23 22 24 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 23 25 ··· 27 29 description = "SoapySDR plugin for BladeRF devices"; 28 30 license = licenses.lgpl21Only; 29 31 maintainers = with maintainers; [ markuskowa ]; 30 - platforms = platforms.linux; 32 + platforms = platforms.unix; 31 33 }; 32 34 }
+4 -2
pkgs/applications/radio/soapyhackrf/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config 2 2 , hackrf, soapysdr 3 + , libobjc, IOKit, Security 3 4 } : 4 5 5 6 let ··· 17 18 }; 18 19 19 20 nativeBuildInputs = [ cmake pkg-config ]; 20 - buildInputs = [ hackrf soapysdr ]; 21 + buildInputs = [ hackrf soapysdr ] 22 + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; 21 23 22 24 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 23 25 ··· 26 28 description = "SoapySDR plugin for HackRF devices"; 27 29 license = licenses.mit; 28 30 maintainers = with maintainers; [ markuskowa ]; 29 - platforms = platforms.linux; 31 + platforms = platforms.unix; 30 32 }; 31 33 }
+3 -1
pkgs/applications/radio/soapyremote/default.nix
··· 19 19 20 20 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 21 21 22 + NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-include sys/select.h" ]; 23 + 22 24 meta = with lib; { 23 25 homepage = "https://github.com/pothosware/SoapyRemote"; 24 26 description = "SoapySDR plugin for remote access to SDRs"; 25 27 license = licenses.boost; 26 28 maintainers = with maintainers; [ markuskowa ]; 27 - platforms = platforms.linux; 29 + platforms = platforms.unix; 28 30 }; 29 31 }
+4 -2
pkgs/applications/radio/soapyuhd/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config 2 2 , uhd, boost, soapysdr 3 + , libobjc, IOKit, Security 3 4 } : 4 5 5 6 stdenv.mkDerivation rec { ··· 14 15 }; 15 16 16 17 nativeBuildInputs = [ cmake pkg-config ]; 17 - buildInputs = [ uhd boost soapysdr ]; 18 + buildInputs = [ uhd boost soapysdr ] 19 + ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ]; 18 20 19 21 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 20 22 ··· 27 29 description = "SoapySDR plugin for UHD devices"; 28 30 license = licenses.gpl3Only; 29 31 maintainers = with maintainers; [ markuskowa ]; 30 - platforms = platforms.linux; 32 + platforms = platforms.unix; 31 33 }; 32 34 }
+22 -6
pkgs/top-level/all-packages.nix
··· 8808 8808 8809 8809 lidarr = callPackage ../servers/lidarr { }; 8810 8810 8811 - limesuite = callPackage ../applications/radio/limesuite { }; 8811 + limesuite = callPackage ../applications/radio/limesuite { 8812 + inherit (darwin.apple_sdk.frameworks) GLUT; 8813 + }; 8812 8814 8813 8815 limesurvey = callPackage ../servers/limesurvey { }; 8814 8816 ··· 21922 21924 21923 21925 snowcrash = callPackage ../tools/security/snowcrash { }; 21924 21926 21925 - soapyairspy = callPackage ../applications/radio/soapyairspy { }; 21927 + soapyairspy = callPackage ../applications/radio/soapyairspy { 21928 + inherit (darwin) libobjc; 21929 + inherit (darwin.apple_sdk.frameworks) IOKit Security; 21930 + }; 21926 21931 21927 - soapyaudio = callPackage ../applications/radio/soapyaudio { }; 21932 + soapyaudio = callPackage ../applications/radio/soapyaudio { 21933 + inherit (darwin.apple_sdk.frameworks) Accelerate CoreAudio; 21934 + }; 21928 21935 21929 - soapybladerf = callPackage ../applications/radio/soapybladerf { }; 21936 + soapybladerf = callPackage ../applications/radio/soapybladerf { 21937 + inherit (darwin) libobjc; 21938 + inherit (darwin.apple_sdk.frameworks) IOKit Security; 21939 + }; 21930 21940 21931 - soapyhackrf = callPackage ../applications/radio/soapyhackrf { }; 21941 + soapyhackrf = callPackage ../applications/radio/soapyhackrf { 21942 + inherit (darwin) libobjc; 21943 + inherit (darwin.apple_sdk.frameworks) IOKit Security; 21944 + }; 21932 21945 21933 21946 soapysdr = callPackage ../applications/radio/soapysdr { }; 21934 21947 ··· 21954 21967 inherit (darwin.apple_sdk.frameworks) IOKit Security; 21955 21968 }; 21956 21969 21957 - soapyuhd = callPackage ../applications/radio/soapyuhd { }; 21970 + soapyuhd = callPackage ../applications/radio/soapyuhd { 21971 + inherit (darwin) libobjc; 21972 + inherit (darwin.apple_sdk.frameworks) IOKit Security; 21973 + }; 21958 21974 21959 21975 social-engineer-toolkit = callPackage ../tools/security/social-engineer-toolkit { }; 21960 21976