diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-10-06 19:14:13 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-10-06 19:14:13 +0200 |
commit | 097babd4a1be2c2d56220132c45c8b90e282efd5 (patch) | |
tree | af1a1fb3517229212f729ed0901304a7fef32a26 /pkgs/applications/radio/soapyhackrf | |
parent | a989aa4619162ff37bcbb8c2fb1e502658647fb2 (diff) |
soapysdr-with-plugins: add darwin support
Diffstat (limited to 'pkgs/applications/radio/soapyhackrf')
-rw-r--r-- | pkgs/applications/radio/soapyhackrf/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
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; }; } |