mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #226300 from bjornfor/enable-gr-osmosdr-for-gr310
gnuradioPackages.osmosdr: enable for gnuradio 3.10
This commit is contained in:
commit
ed3ec664a5
@ -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
|
||||||
|
@ -225,7 +225,7 @@ let
|
|||||||
inherit (shared) hasFeature; # function
|
inherit (shared) hasFeature; # function
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
inherit (shared)
|
inherit (shared)
|
||||||
version
|
version
|
||||||
@ -253,8 +253,10 @@ stdenv.mkDerivation rec {
|
|||||||
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") {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, cmake
|
, cmake
|
||||||
# Remove gcc and python references
|
# Remove gcc and python references
|
||||||
, removeReferencesTo
|
, removeReferencesTo
|
||||||
@ -141,6 +140,9 @@ let
|
|||||||
};
|
};
|
||||||
gr-blocks = {
|
gr-blocks = {
|
||||||
cmakeEnableFlag = "GR_BLOCKS";
|
cmakeEnableFlag = "GR_BLOCKS";
|
||||||
|
runtime = [
|
||||||
|
libsndfile
|
||||||
|
];
|
||||||
};
|
};
|
||||||
gr-fec = {
|
gr-fec = {
|
||||||
cmakeEnableFlag = "GR_FEC";
|
cmakeEnableFlag = "GR_FEC";
|
||||||
@ -259,7 +261,7 @@ let
|
|||||||
inherit (shared) hasFeature; # function
|
inherit (shared) hasFeature; # function
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
inherit (shared)
|
inherit (shared)
|
||||||
version
|
version
|
||||||
@ -283,8 +285,10 @@ stdenv.mkDerivation rec {
|
|||||||
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") {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, cmake
|
, cmake
|
||||||
# Remove gcc and python references
|
# Remove gcc and python references
|
||||||
, removeReferencesTo
|
, removeReferencesTo
|
||||||
@ -143,6 +142,10 @@ let
|
|||||||
};
|
};
|
||||||
gr-blocks = {
|
gr-blocks = {
|
||||||
cmakeEnableFlag = "GR_BLOCKS";
|
cmakeEnableFlag = "GR_BLOCKS";
|
||||||
|
runtime = [
|
||||||
|
# Required to compile wavfile blocks.
|
||||||
|
libsndfile
|
||||||
|
];
|
||||||
};
|
};
|
||||||
gr-fec = {
|
gr-fec = {
|
||||||
cmakeEnableFlag = "GR_FEC";
|
cmakeEnableFlag = "GR_FEC";
|
||||||
@ -278,7 +281,7 @@ let
|
|||||||
inherit (shared) hasFeature; # function
|
inherit (shared) hasFeature; # function
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
inherit (shared)
|
inherit (shared)
|
||||||
version
|
version
|
||||||
@ -302,8 +305,10 @@ stdenv.mkDerivation rec {
|
|||||||
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") {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
, qtbase
|
, qtbase
|
||||||
, qtsvg
|
, qtsvg
|
||||||
, qtwayland
|
, qtwayland
|
||||||
, gnuradio3_8Minimal
|
, gnuradioMinimal
|
||||||
, thrift
|
, thrift
|
||||||
, mpir
|
, mpir
|
||||||
, fftwFloat
|
, fftwFloat
|
||||||
@ -25,7 +25,7 @@ assert portaudioSupport -> portaudio != null;
|
|||||||
# audio backends are mutually exclusive
|
# audio backends are mutually exclusive
|
||||||
assert !(pulseaudioSupport && portaudioSupport);
|
assert !(pulseaudioSupport && portaudioSupport);
|
||||||
|
|
||||||
gnuradio3_8Minimal.pkgs.mkDerivation rec {
|
gnuradioMinimal.pkgs.mkDerivation rec {
|
||||||
pname = "gqrx";
|
pname = "gqrx";
|
||||||
version = "2.15.10";
|
version = "2.15.10";
|
||||||
|
|
||||||
@ -43,21 +43,21 @@ gnuradio3_8Minimal.pkgs.mkDerivation rec {
|
|||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gnuradio3_8Minimal.unwrapped.log4cpp
|
gnuradioMinimal.unwrapped.logLib
|
||||||
mpir
|
mpir
|
||||||
fftwFloat
|
fftwFloat
|
||||||
alsa-lib
|
alsa-lib
|
||||||
libjack2
|
libjack2
|
||||||
gnuradio3_8Minimal.unwrapped.boost
|
gnuradioMinimal.unwrapped.boost
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qtwayland
|
qtwayland
|
||||||
gnuradio3_8Minimal.pkgs.osmosdr
|
gnuradioMinimal.pkgs.osmosdr
|
||||||
rtl-sdr
|
rtl-sdr
|
||||||
hackrf
|
hackrf
|
||||||
] ++ lib.optionals (gnuradio3_8Minimal.hasFeature "gr-ctrlport") [
|
] ++ lib.optionals (gnuradioMinimal.hasFeature "gr-ctrlport") [
|
||||||
thrift
|
thrift
|
||||||
gnuradio3_8Minimal.unwrapped.python.pkgs.thrift
|
gnuradioMinimal.unwrapped.python.pkgs.thrift
|
||||||
] ++ lib.optionals pulseaudioSupport [ libpulseaudio ]
|
] ++ lib.optionals pulseaudioSupport [ libpulseaudio ]
|
||||||
++ lib.optionals portaudioSupport [ portaudio ];
|
++ lib.optionals portaudioSupport [ portaudio ];
|
||||||
|
|
||||||
|
@ -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,8 @@
|
|||||||
, gnuradio
|
, gnuradio
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, log4cpp
|
, logLib
|
||||||
|
, libsndfile
|
||||||
, mpir
|
, mpir
|
||||||
, boost
|
, boost
|
||||||
, gmp
|
, gmp
|
||||||
@ -27,6 +28,8 @@ let
|
|||||||
version = {
|
version = {
|
||||||
"3.7" = "0.1.5";
|
"3.7" = "0.1.5";
|
||||||
"3.8" = "0.2.3";
|
"3.8" = "0.2.3";
|
||||||
|
"3.9" = "0.2.4";
|
||||||
|
"3.10" = "0.2.4";
|
||||||
}.${gnuradio.versionAttr.major};
|
}.${gnuradio.versionAttr.major};
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://git.osmocom.org/gr-osmosdr";
|
url = "git://git.osmocom.org/gr-osmosdr";
|
||||||
@ -34,17 +37,19 @@ let
|
|||||||
sha256 = {
|
sha256 = {
|
||||||
"3.7" = "0bf9bnc1c3c4yqqqgmg3nhygj6rcfmyk6pybi27f7461d2cw1drv";
|
"3.7" = "0bf9bnc1c3c4yqqqgmg3nhygj6rcfmyk6pybi27f7461d2cw1drv";
|
||||||
"3.8" = "sha256-ZfI8MshhZOdJ1U5FlnZKXsg2Rsvb6oKg943ZVYd/IWo=";
|
"3.8" = "sha256-ZfI8MshhZOdJ1U5FlnZKXsg2Rsvb6oKg943ZVYd/IWo=";
|
||||||
|
"3.9" = "sha256-d0hbiJ44lEu8V4XX7JpZVSTQwwykwKPUfiqetRBI6uI=";
|
||||||
|
"3.10" = "sha256-d0hbiJ44lEu8V4XX7JpZVSTQwwykwKPUfiqetRBI6uI=";
|
||||||
}.${gnuradio.versionAttr.major};
|
}.${gnuradio.versionAttr.major};
|
||||||
};
|
};
|
||||||
in mkDerivation {
|
in mkDerivation {
|
||||||
pname = "gr-osmosdr";
|
pname = "gr-osmosdr";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
disabledForGRafter = "3.9";
|
disabledForGRafter = "3.11";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
log4cpp
|
logLib
|
||||||
mpir
|
mpir
|
||||||
boost
|
boost
|
||||||
fftwFloat
|
fftwFloat
|
||||||
@ -55,11 +60,16 @@ in mkDerivation {
|
|||||||
libbladeRF
|
libbladeRF
|
||||||
rtl-sdr
|
rtl-sdr
|
||||||
soapysdr-with-plugins
|
soapysdr-with-plugins
|
||||||
|
] ++ lib.optionals (gnuradio.hasFeature "gr-blocks") [
|
||||||
|
libsndfile
|
||||||
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
] ++ lib.optionals (gnuradio.hasFeature "gr-uhd") [
|
||||||
uhd
|
uhd
|
||||||
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
|
||||||
thrift
|
thrift
|
||||||
python.pkgs.thrift
|
python.pkgs.thrift
|
||||||
|
] ++ lib.optionals (gnuradio.hasFeature "python-support") [
|
||||||
|
python.pkgs.numpy
|
||||||
|
python.pkgs.pybind11
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.IOKit
|
darwin.apple_sdk.frameworks.IOKit
|
||||||
darwin.apple_sdk.frameworks.Security
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
@ -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 New Issue
Block a user