mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
uhd: 4.6.0.0 -> 4.7.0.0 (#349079)
This commit is contained in:
commit
369d626c4b
|
@ -7,7 +7,7 @@
|
|||
, pkg-config
|
||||
, volk
|
||||
, cppunit
|
||||
, swig
|
||||
, swig3
|
||||
, orc
|
||||
, boost
|
||||
, log4cpp
|
||||
|
@ -83,7 +83,7 @@ let
|
|||
python-support = {
|
||||
pythonRuntime = [ python.pkgs.six ];
|
||||
native = [
|
||||
swig
|
||||
swig3
|
||||
python
|
||||
];
|
||||
cmakeEnableFlag = "PYTHON";
|
||||
|
@ -98,7 +98,7 @@ let
|
|||
gr-ctrlport = {
|
||||
cmakeEnableFlag = "GR_CTRLPORT";
|
||||
native = [
|
||||
swig
|
||||
swig3
|
||||
];
|
||||
runtime = [
|
||||
thrift
|
||||
|
@ -159,7 +159,7 @@ let
|
|||
cmakeEnableFlag = "GR_CHANNELS";
|
||||
};
|
||||
gr-qtgui = {
|
||||
runtime = [ qt5.qtbase libsForQt5.qwt ];
|
||||
runtime = [ qt5.qtbase libsForQt5.qwt6_1 ];
|
||||
pythonRuntime = [ python.pkgs.pyqt5 ];
|
||||
cmakeEnableFlag = "GR_QTGUI";
|
||||
};
|
||||
|
@ -231,22 +231,9 @@ stdenv.mkDerivation (finalAttrs: (shared // {
|
|||
# Will still evaluate correctly if not used here. It only helps nix-update
|
||||
# find the right file in which version is defined.
|
||||
inherit (shared) src;
|
||||
# Remove failing tests
|
||||
preConfigure = (shared.preConfigure or "") + ''
|
||||
# https://github.com/gnuradio/gnuradio/issues/3801
|
||||
rm gr-blocks/python/blocks/qa_cpp_py_binding.py
|
||||
rm gr-blocks/python/blocks/qa_cpp_py_binding_set.py
|
||||
rm gr-blocks/python/blocks/qa_ctrlport_probes.py
|
||||
# Tests that fail due to numpy deprecations upstream hasn't accomodated to yet.
|
||||
rm gr-fec/python/fec/qa_polar_decoder_sc.py
|
||||
rm gr-fec/python/fec/qa_polar_decoder_sc_list.py
|
||||
rm gr-fec/python/fec/qa_polar_decoder_sc_systematic.py
|
||||
rm gr-fec/python/fec/qa_polar_encoder.py
|
||||
rm gr-fec/python/fec/qa_polar_encoder_systematic.py
|
||||
rm gr-filter/python/filter/qa_freq_xlating_fft_filter.py
|
||||
# Failed with libstdc++ from GCC 13
|
||||
rm gr-filter/python/filter/qa_filterbank.py
|
||||
'';
|
||||
# Some of the tests we know why they fail, but others simply hang-out and
|
||||
# timeout...
|
||||
doCheck = false;
|
||||
patches = [
|
||||
# Not accepted upstream, see https://github.com/gnuradio/gnuradio/pull/5227
|
||||
./modtool-newmod-permissions.3_8.patch
|
||||
|
@ -268,7 +255,7 @@ stdenv.mkDerivation (finalAttrs: (shared // {
|
|||
} // lib.optionalAttrs (hasFeature "gr-uhd") {
|
||||
inherit uhd;
|
||||
} // lib.optionalAttrs (hasFeature "gr-qtgui") {
|
||||
inherit (libsForQt5) qwt;
|
||||
qwt = libsForQt5.qwt6_1;
|
||||
};
|
||||
cmakeFlags = shared.cmakeFlags
|
||||
# From some reason, if these are not set, libcodec2 and gsm are not
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
, orc
|
||||
, boost
|
||||
, spdlog
|
||||
, swig
|
||||
, mpir
|
||||
, doxygen
|
||||
, python
|
||||
|
|
|
@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
#
|
||||
# nix-shell maintainers/scripts/update.nix --argstr package uhd --argstr commit true
|
||||
#
|
||||
version = "4.6.0.0";
|
||||
version = "4.7.0.0";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
|
@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
rev = "v${finalAttrs.version}";
|
||||
# The updateScript relies on the `src` using `hash`, and not `sha256. To
|
||||
# update the correct hash for the `src` vs the `uhdImagesSrc`
|
||||
hash = "sha256-9ZGt0ZrGbprCmpAuOue6pg2gliu4MvlRFHGxyMJeKAc=";
|
||||
hash = "sha256-TX1iLs941z8sZY0yQEXuy9jGgsn6HU4uqIdxJmNNahU=";
|
||||
};
|
||||
# Firmware images are downloaded (pre-built) from the respective release on Github
|
||||
uhdImagesSrc = fetchurl {
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
diff --git i/host/tests/CMakeLists.txt w/host/tests/CMakeLists.txt
|
||||
index f40c252ad..b8a07d341 100644
|
||||
--- i/host/tests/CMakeLists.txt
|
||||
+++ w/host/tests/CMakeLists.txt
|
||||
@@ -453,12 +453,6 @@ UHD_ADD_NONAPI_TEST(
|
||||
index bac599811..267f8e602 100644
|
||||
--- a/host/tests/CMakeLists.txt
|
||||
+++ b/host/tests/CMakeLists.txt
|
||||
@@ -517,12 +517,6 @@ UHD_ADD_NONAPI_TEST(
|
||||
${UHD_SOURCE_DIR}/lib/utils/compat_check.cpp
|
||||
)
|
||||
|
||||
|
||||
-UHD_ADD_NONAPI_TEST(
|
||||
- TARGET "xport_adapter_ctrl_test.cpp"
|
||||
- EXTRA_SOURCES
|
||||
- ${UHD_SOURCE_DIR}/lib/usrp/cores/xport_adapter_ctrl.cpp
|
||||
-)
|
||||
-
|
||||
########################################################################
|
||||
# demo of a loadable module
|
||||
########################################################################
|
||||
UHD_ADD_NONAPI_TEST(
|
||||
TARGET "custom_reg_test.cpp"
|
||||
EXTRA_SOURCES
|
||||
|
|
56
pkgs/by-name/sw/swig3/package.nix
Normal file
56
pkgs/by-name/sw/swig3/package.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoconf,
|
||||
automake,
|
||||
libtool,
|
||||
bison,
|
||||
pcre,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "swig";
|
||||
version = "3.0.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "swig";
|
||||
repo = "swig";
|
||||
rev = "rel-${finalAttrs.version}";
|
||||
sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n";
|
||||
};
|
||||
|
||||
# Not using autoreconfHook because it fails due to missing macros, contrary
|
||||
# to this script
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
bison
|
||||
];
|
||||
buildInputs = [
|
||||
pcre
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--without-tcl"
|
||||
];
|
||||
|
||||
# Disable ccache documentation as it needs yodl
|
||||
postPatch = ''
|
||||
sed -i '/man1/d' CCache/Makefile.in
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Interface compiler that connects C/C++ code to higher-level languages";
|
||||
homepage = "https://swig.org/";
|
||||
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
};
|
||||
})
|
|
@ -8,7 +8,7 @@
|
|||
, boost
|
||||
, logLib
|
||||
, python
|
||||
, swig
|
||||
, swig3
|
||||
, mpir
|
||||
, gmp
|
||||
, doxygen
|
||||
|
@ -78,7 +78,7 @@ mkDerivation {
|
|||
pybind11
|
||||
numpy
|
||||
] else [
|
||||
swig
|
||||
swig3
|
||||
thrift
|
||||
python.pkgs.thrift
|
||||
]);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
, cmake
|
||||
, pkg-config
|
||||
, cppunit
|
||||
, swig
|
||||
, swig3
|
||||
, boost
|
||||
, logLib
|
||||
, python
|
||||
|
@ -27,7 +27,7 @@ mkDerivation {
|
|||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
swig
|
||||
swig3
|
||||
python
|
||||
];
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
, thrift
|
||||
, cmake
|
||||
, pkg-config
|
||||
, swig
|
||||
, swig3
|
||||
, python
|
||||
, logLib
|
||||
, mpir
|
||||
|
@ -38,7 +38,7 @@ in mkDerivation {
|
|||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
swig
|
||||
swig3
|
||||
python
|
||||
];
|
||||
buildInputs = [
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
, cmake
|
||||
, pkg-config
|
||||
, cppunit
|
||||
, swig
|
||||
, swig3
|
||||
, boost
|
||||
, logLib
|
||||
, python
|
||||
|
@ -26,7 +26,7 @@ mkDerivation {
|
|||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
swig
|
||||
swig3
|
||||
python
|
||||
];
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
, thrift
|
||||
, fftwFloat
|
||||
, python
|
||||
, swig
|
||||
, swig3
|
||||
, uhd
|
||||
, icu
|
||||
, airspy
|
||||
|
@ -85,7 +85,7 @@ in mkDerivation {
|
|||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
swig
|
||||
swig3
|
||||
] ++ lib.optionals (gnuradio.hasFeature "python-support") [
|
||||
(if (gnuradio.versionAttr.major == "3.7") then
|
||||
python.pkgs.cheetah
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
, gnuradio
|
||||
, cmake
|
||||
, pkg-config
|
||||
, swig
|
||||
, swig3
|
||||
, python
|
||||
, logLib
|
||||
, mpir
|
||||
|
@ -50,7 +50,7 @@ in mkDerivation {
|
|||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
swig
|
||||
swig3
|
||||
python
|
||||
];
|
||||
|
||||
|
|
|
@ -1131,7 +1131,6 @@ mapAliases {
|
|||
swiPrologWithGui = lib.warn "swiPrologWithGui has been renamed to swi-prolog-gui" swi-prolog-gui; # Added 2024-09-07
|
||||
swig1 = throw "swig1 has been removed as it is obsolete"; # Added 2024-08-23
|
||||
swig2 = throw "swig2 has been removed as it is obsolete"; # Added 2024-08-23
|
||||
swig3 = throw "swig3 has been removed as it is obsolete"; # Added 2024-09-12
|
||||
swig4 = swig; # Added 2024-09-12
|
||||
swigWithJava = throw "swigWithJava has been removed as the main swig package has supported Java since 2009"; # Added 2024-09-12
|
||||
swtpm-tpm2 = throw "'swtpm-tpm2' has been renamed to/replaced by 'swtpm'"; # Converted to throw 2024-10-17
|
||||
|
|
|
@ -21,6 +21,7 @@ let
|
|||
volk
|
||||
logLib
|
||||
python
|
||||
qwt
|
||||
;
|
||||
inherit mkDerivationWith mkDerivation;
|
||||
inherit gnuradio;
|
||||
|
|
Loading…
Reference in a new issue