Commit f2b67e02 authored by Linus Karl's avatar Linus Karl
Browse files

soapyrtlsdr: fix cmake 4 compatibility

parent 21308a98
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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; {