mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-08 15:26:48 +00:00
Merge pull request #322294 from lasandell/dump1090-soapysdr
dump1090: enable SoapySDR support
This commit is contained in:
commit
fe637ba50d
@ -1,12 +1,13 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, hackrf
|
||||||
, libbladeRF
|
, libbladeRF
|
||||||
, libusb1
|
, libusb1
|
||||||
|
, limesuite
|
||||||
, ncurses
|
, ncurses
|
||||||
, rtl-sdr
|
, rtl-sdr
|
||||||
, hackrf
|
, soapysdr-with-plugins
|
||||||
, limesuite
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -23,17 +24,18 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
hackrf
|
||||||
libbladeRF
|
libbladeRF
|
||||||
libusb1
|
libusb1
|
||||||
ncurses
|
ncurses
|
||||||
rtl-sdr
|
rtl-sdr
|
||||||
hackrf
|
soapysdr-with-plugins
|
||||||
] ++ lib.optional stdenv.isLinux limesuite;
|
] ++ lib.optional stdenv.isLinux limesuite;
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
||||||
"-Wno-implicit-function-declaration -Wno-int-conversion -Wno-unknown-warning-option";
|
"-Wno-implicit-function-declaration -Wno-int-conversion -Wno-unknown-warning-option";
|
||||||
|
|
||||||
buildFlags = [ "DUMP1090_VERSION=${version}" "dump1090" "view1090" ];
|
buildFlags = [ "DUMP1090_VERSION=${version}" "showconfig" "dump1090" "view1090" ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user