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