From fd24bf9858d974021e77197f33b86f743890ebd5 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Wed, 30 Sep 2026 10:28:32 -0700 Subject: [PATCH] soapyuhd: 0.4.1-unstable-2025-10-05 -> 0.4.1-unstable-2026-09-25 Fixes the build with uhd 4.11. --- .../so/soapyuhd/boost-lexical-cast.patch | 38 ------------------- pkgs/by-name/so/soapyuhd/package.nix | 19 ++-------- 2 files changed, 4 insertions(+), 53 deletions(-) delete mode 100644 pkgs/by-name/so/soapyuhd/boost-lexical-cast.patch diff --git a/pkgs/by-name/so/soapyuhd/boost-lexical-cast.patch b/pkgs/by-name/so/soapyuhd/boost-lexical-cast.patch deleted file mode 100644 index 139ef09f8b1f..000000000000 --- a/pkgs/by-name/so/soapyuhd/boost-lexical-cast.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 8b86a301540566dad533119a4d3fc6ec721e08ab Mon Sep 17 00:00:00 2001 -From: Martin Pluskal -Date: Thu, 18 Jun 2026 19:47:28 +0200 -Subject: [PATCH] Include explicitly - -UHDSoapyDevice.cpp and SoapyUHDDevice.cpp use boost::lexical_cast but -relied on it being pulled in transitively by another boost header. -Recent Boost no longer does so, breaking the build with -'lexical_cast is not a member of boost'. Include it directly. ---- - SoapyUHDDevice.cpp | 1 + - UHDSoapyDevice.cpp | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/SoapyUHDDevice.cpp b/SoapyUHDDevice.cpp -index 41140a8..673f06c 100644 ---- a/SoapyUHDDevice.cpp -+++ b/SoapyUHDDevice.cpp -@@ -22,6 +22,7 @@ - #include - #include - #include -+#include - - /*********************************************************************** - * Stream wrapper -diff --git a/UHDSoapyDevice.cpp b/UHDSoapyDevice.cpp -index 88641c5..8ed6574 100644 ---- a/UHDSoapyDevice.cpp -+++ b/UHDSoapyDevice.cpp -@@ -37,6 +37,7 @@ - #include - #include - #include -+#include - - #include - #include diff --git a/pkgs/by-name/so/soapyuhd/package.nix b/pkgs/by-name/so/soapyuhd/package.nix index 58e39cc6084c..69a75225b218 100644 --- a/pkgs/by-name/so/soapyuhd/package.nix +++ b/pkgs/by-name/so/soapyuhd/package.nix @@ -11,21 +11,16 @@ stdenv.mkDerivation { pname = "soapyuhd"; - version = "0.4.1-unstable-2025-10-05"; + version = "0.4.1-unstable-2026-09-25"; src = fetchFromGitHub { owner = "pothosware"; repo = "SoapyUHD"; - # version that supports cmake 4 - rev = "cf78b9ca3bddfc9263d2acb7e8afcb0036938163"; - hash = "sha256-/hJ78dUL477gX3c2kV8kUknIk01PUf+ie1Gl7Ujq1Ac="; + # includes get_stream_info() overrides needed for UHD >= 4.11 + rev = "c695089c9d139f90465d2025d8dcb2ef26fa00f0"; + hash = "sha256-uGPCmjSHI8dx4//tacuHLNPwDImoacvcKHplYyNpLao="; }; - # Newer versions of Boost do not pull in boost::lexical_cast transitively, so - # it must be explicitly specified. - # Vendored from https://github.com/pothosware/SoapyUHD/pull/76 - patches = [ ./boost-lexical-cast.patch ]; - nativeBuildInputs = [ cmake pkg-config @@ -38,14 +33,8 @@ stdenv.mkDerivation { cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; - # SoapyUHD was originally pinned to C++14 as that was required by UHD at the - # time, but UHD 4.10 upgrades to C++20, so we switch to that here as well. - # https://github.com/pothosware/SoapyUHD/commit/1f7b6fa245f782e5d18453f5cbc6d9f27e6b26df postPatch = '' sed -i "s:DESTINATION .*uhd/modules:DESTINATION $out/lib/uhd/modules:" CMakeLists.txt - - substituteInPlace CMakeLists.txt --replace-fail \ - "set(CMAKE_CXX_STANDARD 14)" "set(CMAKE_CXX_STANDARD 20)" ''; meta = {