soapyrtlsdr: fix cmake 4 compatibility

This commit is contained in:
Linus Karl
2025-10-05 21:24:41 +02:00
parent 21308a9801
commit f2b67e028c
+15
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
cmake,
pkg-config,
rtl-sdr,
@@ -28,6 +29,20 @@ stdenv.mkDerivation (finalAttrs: {
soapysdr
];
patches = [
(fetchpatch2 {
name = "cmake-update.patch";
url = "https://github.com/pothosware/SoapyRTLSDR/commit/448c9d0d326c2600905b7ce84222ff9d72ba2189.patch?full_index=1";
hash = "sha256-hWlNowkf9yZM6p+EGh+IiUm2JfG5mLe8Qq8gTVIdIak=";
})
(fetchpatch2 {
name = "fix-cmake4-build.patch";
url = "https://github.com/pothosware/SoapyRTLSDR/commit/bb2d1511b957138051764c9193a3d6971e912b85.patch?full_index=1";
hash = "sha256-C90B5WMjx1lJKiX0F/cAfGmz2WRc2BA84FTmVmnC+DI=";
})
];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with lib; {