mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
gnuradio: Define a common logLib attribute
Use it in all gnuradio modules.
This commit is contained in:
parent
1dd64003d2
commit
2634268fa6
@ -60,13 +60,10 @@ gnuradio.pkgs.mkDerivation rec {
|
||||
pugixml
|
||||
protobuf
|
||||
gnuradio.unwrapped.boost
|
||||
gnuradio.unwrapped.logLib
|
||||
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
||||
gnuradio.unwrapped.uhd
|
||||
] ++ (if (lib.versionAtLeast gnuradio.unwrapped.versionAttr.major "3.10") then [
|
||||
gnuradio.unwrapped.spdlog
|
||||
] else [
|
||||
gnuradio.unwrapped.log4cpp
|
||||
]) ++ lib.optionals (enableRawUdp) [
|
||||
] ++ lib.optionals (enableRawUdp) [
|
||||
libpcap
|
||||
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
||||
thrift
|
||||
|
@ -253,8 +253,10 @@ stdenv.mkDerivation {
|
||||
inherit
|
||||
boost
|
||||
volk
|
||||
log4cpp
|
||||
;
|
||||
# Used by many gnuradio modules, the same attribute is present in
|
||||
# gnuradio3.10 where there it's spdlog.
|
||||
logLib = log4cpp;
|
||||
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||
inherit uhd;
|
||||
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
||||
|
@ -285,8 +285,10 @@ stdenv.mkDerivation {
|
||||
inherit
|
||||
boost
|
||||
volk
|
||||
log4cpp
|
||||
;
|
||||
# Used by many gnuradio modules, the same attribute is present in
|
||||
# gnuradio3.10 where there it's spdlog.
|
||||
logLib = log4cpp;
|
||||
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||
inherit uhd;
|
||||
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
||||
|
@ -305,8 +305,10 @@ stdenv.mkDerivation {
|
||||
inherit
|
||||
boost
|
||||
volk
|
||||
spdlog
|
||||
;
|
||||
# Used by many gnuradio modules, the same attribute is present in
|
||||
# previous gnuradio versions where there it's log4cpp.
|
||||
logLib = spdlog;
|
||||
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||
inherit uhd;
|
||||
} // lib.optionalAttrs (hasFeature "gr-pdu") {
|
||||
|
@ -43,7 +43,7 @@ gnuradio3_8Minimal.pkgs.mkDerivation rec {
|
||||
wrapGAppsHook
|
||||
];
|
||||
buildInputs = [
|
||||
gnuradio3_8Minimal.unwrapped.log4cpp
|
||||
gnuradio3_8Minimal.unwrapped.logLib
|
||||
mpir
|
||||
fftwFloat
|
||||
alsa-lib
|
||||
|
@ -49,7 +49,7 @@ gnuradio3_8.pkgs.mkDerivation rec {
|
||||
buildInputs = [
|
||||
gnuradio3_8.unwrapped.boost
|
||||
codec2
|
||||
gnuradio3_8.unwrapped.log4cpp
|
||||
gnuradio3_8.unwrapped.logLib
|
||||
gmp
|
||||
libpulseaudio
|
||||
libconfig
|
||||
|
@ -6,7 +6,7 @@
|
||||
, python
|
||||
, boost
|
||||
, cppunit
|
||||
, log4cpp
|
||||
, logLib
|
||||
, osmosdr
|
||||
, gmp
|
||||
, mpir
|
||||
@ -41,7 +41,7 @@ mkDerivation rec {
|
||||
cppunit
|
||||
osmosdr
|
||||
boost
|
||||
log4cpp
|
||||
logLib
|
||||
gmp
|
||||
mpir
|
||||
fftwFloat
|
||||
|
@ -6,7 +6,7 @@
|
||||
, cmake
|
||||
, pkg-config
|
||||
, boost
|
||||
, log4cpp
|
||||
, logLib
|
||||
, python
|
||||
, swig
|
||||
, mpir
|
||||
@ -67,7 +67,7 @@ mkDerivation {
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
log4cpp
|
||||
logLib
|
||||
doxygen
|
||||
mpir
|
||||
gmp
|
||||
|
@ -6,7 +6,7 @@
|
||||
, cppunit
|
||||
, swig
|
||||
, boost
|
||||
, log4cpp
|
||||
, logLib
|
||||
, python
|
||||
, libosmocore
|
||||
, osmosdr
|
||||
@ -32,7 +32,7 @@ mkDerivation {
|
||||
|
||||
buildInputs = [
|
||||
cppunit
|
||||
log4cpp
|
||||
logLib
|
||||
boost
|
||||
libosmocore
|
||||
osmosdr
|
||||
|
@ -8,7 +8,7 @@
|
||||
, doxygen
|
||||
, swig
|
||||
, python
|
||||
, log4cpp
|
||||
, logLib
|
||||
, mpir
|
||||
, boost
|
||||
, gmp
|
||||
@ -42,7 +42,7 @@ in mkDerivation {
|
||||
python
|
||||
];
|
||||
buildInputs = [
|
||||
log4cpp
|
||||
logLib
|
||||
mpir
|
||||
boost
|
||||
gmp
|
||||
|
@ -6,7 +6,7 @@
|
||||
, cppunit
|
||||
, swig
|
||||
, boost
|
||||
, log4cpp
|
||||
, logLib
|
||||
, python
|
||||
, libsodium
|
||||
}:
|
||||
@ -31,7 +31,7 @@ mkDerivation {
|
||||
|
||||
buildInputs = [
|
||||
cppunit
|
||||
log4cpp
|
||||
logLib
|
||||
boost
|
||||
libsodium
|
||||
];
|
||||
|
@ -6,7 +6,7 @@
|
||||
, gnuradio
|
||||
, cmake
|
||||
, pkg-config
|
||||
, log4cpp
|
||||
, logLib
|
||||
, mpir
|
||||
, boost
|
||||
, gmp
|
||||
@ -44,7 +44,7 @@ in mkDerivation {
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
buildInputs = [
|
||||
log4cpp
|
||||
logLib
|
||||
mpir
|
||||
boost
|
||||
fftwFloat
|
||||
|
@ -6,7 +6,7 @@
|
||||
, pkg-config
|
||||
, swig
|
||||
, python
|
||||
, log4cpp
|
||||
, logLib
|
||||
, mpir
|
||||
, thrift
|
||||
, boost
|
||||
@ -36,7 +36,7 @@ in mkDerivation {
|
||||
disabledForGRafter = "3.9";
|
||||
|
||||
buildInputs = [
|
||||
log4cpp
|
||||
logLib
|
||||
mpir
|
||||
boost
|
||||
gmp
|
||||
|
@ -19,15 +19,12 @@ let
|
||||
# Packages that are potentially overridden and used as deps here.
|
||||
boost
|
||||
volk
|
||||
logLib
|
||||
;
|
||||
inherit mkDerivationWith mkDerivation;
|
||||
} // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
|
||||
inherit (gnuradio) uhd;
|
||||
} // (if (lib.versionAtLeast gnuradio.versionAttr.major "3.10") then {
|
||||
inherit (gnuradio) spdlog;
|
||||
} else {
|
||||
inherit (gnuradio) log4cpp;
|
||||
}));
|
||||
});
|
||||
in {
|
||||
|
||||
inherit callPackage mkDerivation mkDerivationWith;
|
||||
|
Loading…
Reference in New Issue
Block a user