forked from mirrors/nixpkgs
soapyrtlsdr: fix build on Darwin
This commit is contained in:
parent
b4e5d04518
commit
b03edd851c
|
@ -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/" ];
|
||||
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue