3
0
Fork 0
forked from mirrors/nixpkgs

soapyrtlsdr: fix build on Darwin

This commit is contained in:
Luiz Ribeiro 2022-07-24 20:40:22 -05:00
parent b4e5d04518
commit b03edd851c
No known key found for this signature in database
GPG key ID: BF6F8043AC280E02
2 changed files with 9 additions and 2 deletions

View file

@ -5,6 +5,9 @@
, pkg-config
, rtl-sdr
, soapysdr
, libobjc
, IOKit
, Security
}:
stdenv.mkDerivation (finalAttrs: {
@ -19,7 +22,8 @@ stdenv.mkDerivation (finalAttrs: {
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ rtl-sdr soapysdr ];
buildInputs = [ rtl-sdr soapysdr ]
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];

View file

@ -21100,7 +21100,10 @@ with pkgs;
];
};
soapyrtlsdr = callPackage ../applications/radio/soapyrtlsdr { };
soapyrtlsdr = callPackage ../applications/radio/soapyrtlsdr {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.frameworks) IOKit Security;
};
soapyuhd = callPackage ../applications/radio/soapyuhd { };