soapyaudio: fix build for cmake 4 (#450311)

This commit is contained in:
Leona Maroni
2025-10-09 21:43:24 +00:00
committed by GitHub
+9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
hamlib,
@@ -40,6 +41,14 @@ stdenv.mkDerivation rec {
libpulseaudio
];
patches = [
# CMake < 3.5.0 fix. Remove when (https://github.com/pothosware/SoapyAudio/pull/23 is merged && next version bump).
(fetchpatch {
url = "https://github.com/pothosware/SoapyAudio/pull/23/commits/265c6f043762810b369490398956c5e511ca5261.patch";
hash = "sha256-eqx/7i7jewkHm0M54rtEhznDRN9iPeIlgwHMJY9pN9g=";
})
];
cmakeFlags = [
"-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/"
"-DUSE_HAMLIB=ON"