soapysdr-sdrplay: add darwin support (#446040)

This commit is contained in:
Michael Daniels
2026-04-05 03:44:56 +00:00
committed by GitHub
2 changed files with 26 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
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)
+13 -6
View File
@@ -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"
];
};
}
})