forked from mirrors/nixpkgs
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
|
pugixml
|
||||||
protobuf
|
protobuf
|
||||||
gnuradio.unwrapped.boost
|
gnuradio.unwrapped.boost
|
||||||
|
gnuradio.unwrapped.logLib
|
||||||
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
||||||
gnuradio.unwrapped.uhd
|
gnuradio.unwrapped.uhd
|
||||||
] ++ (if (lib.versionAtLeast gnuradio.unwrapped.versionAttr.major "3.10") then [
|
] ++ lib.optionals (enableRawUdp) [
|
||||||
gnuradio.unwrapped.spdlog
|
|
||||||
] else [
|
|
||||||
gnuradio.unwrapped.log4cpp
|
|
||||||
]) ++ lib.optionals (enableRawUdp) [
|
|
||||||
libpcap
|
libpcap
|
||||||
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
||||||
thrift
|
thrift
|
||||||
|
|
|
@ -253,8 +253,10 @@ stdenv.mkDerivation {
|
||||||
inherit
|
inherit
|
||||||
boost
|
boost
|
||||||
volk
|
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") {
|
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||||
inherit uhd;
|
inherit uhd;
|
||||||
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
||||||
|
|
|
@ -285,8 +285,10 @@ stdenv.mkDerivation {
|
||||||
inherit
|
inherit
|
||||||
boost
|
boost
|
||||||
volk
|
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") {
|
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||||
inherit uhd;
|
inherit uhd;
|
||||||
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
||||||
|
|
|
@ -305,8 +305,10 @@ stdenv.mkDerivation {
|
||||||
inherit
|
inherit
|
||||||
boost
|
boost
|
||||||
volk
|
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") {
|
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||||
inherit uhd;
|
inherit uhd;
|
||||||
} // lib.optionalAttrs (hasFeature "gr-pdu") {
|
} // lib.optionalAttrs (hasFeature "gr-pdu") {
|
||||||
|
|
|
@ -43,7 +43,7 @@ gnuradio3_8Minimal.pkgs.mkDerivation rec {
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gnuradio3_8Minimal.unwrapped.log4cpp
|
gnuradio3_8Minimal.unwrapped.logLib
|
||||||
mpir
|
mpir
|
||||||
fftwFloat
|
fftwFloat
|
||||||
alsa-lib
|
alsa-lib
|
||||||
|
|
|
@ -49,7 +49,7 @@ gnuradio3_8.pkgs.mkDerivation rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gnuradio3_8.unwrapped.boost
|
gnuradio3_8.unwrapped.boost
|
||||||
codec2
|
codec2
|
||||||
gnuradio3_8.unwrapped.log4cpp
|
gnuradio3_8.unwrapped.logLib
|
||||||
gmp
|
gmp
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
libconfig
|
libconfig
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, python
|
, python
|
||||||
, boost
|
, boost
|
||||||
, cppunit
|
, cppunit
|
||||||
, log4cpp
|
, logLib
|
||||||
, osmosdr
|
, osmosdr
|
||||||
, gmp
|
, gmp
|
||||||
, mpir
|
, mpir
|
||||||
|
@ -41,7 +41,7 @@ mkDerivation rec {
|
||||||
cppunit
|
cppunit
|
||||||
osmosdr
|
osmosdr
|
||||||
boost
|
boost
|
||||||
log4cpp
|
logLib
|
||||||
gmp
|
gmp
|
||||||
mpir
|
mpir
|
||||||
fftwFloat
|
fftwFloat
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, boost
|
, boost
|
||||||
, log4cpp
|
, logLib
|
||||||
, python
|
, python
|
||||||
, swig
|
, swig
|
||||||
, mpir
|
, mpir
|
||||||
|
@ -67,7 +67,7 @@ mkDerivation {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
log4cpp
|
logLib
|
||||||
doxygen
|
doxygen
|
||||||
mpir
|
mpir
|
||||||
gmp
|
gmp
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, cppunit
|
, cppunit
|
||||||
, swig
|
, swig
|
||||||
, boost
|
, boost
|
||||||
, log4cpp
|
, logLib
|
||||||
, python
|
, python
|
||||||
, libosmocore
|
, libosmocore
|
||||||
, osmosdr
|
, osmosdr
|
||||||
|
@ -32,7 +32,7 @@ mkDerivation {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cppunit
|
cppunit
|
||||||
log4cpp
|
logLib
|
||||||
boost
|
boost
|
||||||
libosmocore
|
libosmocore
|
||||||
osmosdr
|
osmosdr
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, doxygen
|
, doxygen
|
||||||
, swig
|
, swig
|
||||||
, python
|
, python
|
||||||
, log4cpp
|
, logLib
|
||||||
, mpir
|
, mpir
|
||||||
, boost
|
, boost
|
||||||
, gmp
|
, gmp
|
||||||
|
@ -42,7 +42,7 @@ in mkDerivation {
|
||||||
python
|
python
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
log4cpp
|
logLib
|
||||||
mpir
|
mpir
|
||||||
boost
|
boost
|
||||||
gmp
|
gmp
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, cppunit
|
, cppunit
|
||||||
, swig
|
, swig
|
||||||
, boost
|
, boost
|
||||||
, log4cpp
|
, logLib
|
||||||
, python
|
, python
|
||||||
, libsodium
|
, libsodium
|
||||||
}:
|
}:
|
||||||
|
@ -31,7 +31,7 @@ mkDerivation {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cppunit
|
cppunit
|
||||||
log4cpp
|
logLib
|
||||||
boost
|
boost
|
||||||
libsodium
|
libsodium
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, gnuradio
|
, gnuradio
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, log4cpp
|
, logLib
|
||||||
, mpir
|
, mpir
|
||||||
, boost
|
, boost
|
||||||
, gmp
|
, gmp
|
||||||
|
@ -44,7 +44,7 @@ in mkDerivation {
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
log4cpp
|
logLib
|
||||||
mpir
|
mpir
|
||||||
boost
|
boost
|
||||||
fftwFloat
|
fftwFloat
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, swig
|
, swig
|
||||||
, python
|
, python
|
||||||
, log4cpp
|
, logLib
|
||||||
, mpir
|
, mpir
|
||||||
, thrift
|
, thrift
|
||||||
, boost
|
, boost
|
||||||
|
@ -36,7 +36,7 @@ in mkDerivation {
|
||||||
disabledForGRafter = "3.9";
|
disabledForGRafter = "3.9";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
log4cpp
|
logLib
|
||||||
mpir
|
mpir
|
||||||
boost
|
boost
|
||||||
gmp
|
gmp
|
||||||
|
|
|
@ -19,15 +19,12 @@ let
|
||||||
# Packages that are potentially overridden and used as deps here.
|
# Packages that are potentially overridden and used as deps here.
|
||||||
boost
|
boost
|
||||||
volk
|
volk
|
||||||
|
logLib
|
||||||
;
|
;
|
||||||
inherit mkDerivationWith mkDerivation;
|
inherit mkDerivationWith mkDerivation;
|
||||||
} // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
|
} // lib.optionalAttrs (gnuradio.hasFeature "gr-uhd") {
|
||||||
inherit (gnuradio) uhd;
|
inherit (gnuradio) uhd;
|
||||||
} // (if (lib.versionAtLeast gnuradio.versionAttr.major "3.10") then {
|
});
|
||||||
inherit (gnuradio) spdlog;
|
|
||||||
} else {
|
|
||||||
inherit (gnuradio) log4cpp;
|
|
||||||
}));
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
inherit callPackage mkDerivation mkDerivationWith;
|
inherit callPackage mkDerivation mkDerivationWith;
|
||||||
|
|
Loading…
Reference in a new issue