Unverified Commit cee7736d authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

soapysdr-sdrplay: add darwin support (#446040)

parents 7df5b8ff e2db5663
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
+13 −6
Original line number Diff line number Diff line
@@ -8,17 +8,19 @@
  sdrplay,
}:

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

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

  patches = [ ./cmake.patch ];

  nativeBuildInputs = [
    cmake
    pkg-config
@@ -38,6 +40,11 @@ stdenv.mkDerivation rec {
    homepage = "https://github.com/pothosware/SoapySDRPlay3";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.pmenke ];
    platforms = lib.platforms.linux;
    platforms = [
      "x86_64-linux"
      "aarch64-linux"
      "x86_64-darwin"
      "aarch64-darwin"
    ];
  };
}
})