Unverified Commit e2db5663 authored by pmenke's avatar pmenke
Browse files

soapysdr-sdrplay3: fix cmake minimum version

taken from #472544
parent e605c890
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ca2171..2928008 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
 ########################################################################
 # Build Soapy SDR support module for SDRplay (API version 3)
 ########################################################################
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.10)
 project(SoapySDRPlay CXX)

 find_package(SoapySDR "0.4.0" NO_MODULE REQUIRED)
 No newline at end of file
+5 −3
Original line number Diff line number Diff line
@@ -8,17 +8,19 @@
  sdrplay,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "soapysdr-sdrplay3";
  version = "0.5.2";

  src = fetchFromGitHub {
    owner = "pothosware";
    repo = "SoapySDRPlay3";
    rev = "soapy-sdrplay3-${version}";
    rev = "soapy-sdrplay3-${finalAttrs.version}";
    hash = "sha256-5XBOUhI/37sMfdVEb19zWU00/j+Nb30wsP5CXjJ+sJY=";
  };

  patches = [ ./cmake.patch ];

  nativeBuildInputs = [
    cmake
    pkg-config
@@ -45,4 +47,4 @@ stdenv.mkDerivation rec {
      "aarch64-darwin"
    ];
  };
}
})