Unverified Commit 3c4638c3 authored by cyclopentane's avatar cyclopentane
Browse files

soapyairspy: backport cmake < 3.5 fix

parent 7a852a38
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  airspy,
  soapysdr,
@@ -24,6 +25,18 @@ stdenv.mkDerivation rec {
    soapysdr
  ];

  patches = [
    (fetchpatch {
      url = "https://github.com/pothosware/SoapyAirspy/commit/1be30c33b394fc4d2aeea4287e8df8701adad5a0.patch";
      hash = "sha256-ZEIyyd2tOK1diPh8BsEqALHGgdVCV6tZP9xeQNeeXl8=";
    })
    # CMake < 3.5 compat fix. Remove after (https://github.com/pothosware/SoapyAirspy/pull/31 is merged && next version bump).
    (fetchpatch {
      url = "https://github.com/pothosware/SoapyAirspy/pull/31/commits/0ee4a5e8edff9f2bbea60dd069d2cc958e314a3e.patch";
      hash = "sha256-TQs4rDw+kRmxnuUwhhq9ioCsbKKniwuspSk/c7wazMM=";
    })
  ];

  cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];

  meta = with lib; {