Skip to content

Commit 6a415ea

Browse files
authored
Merge e2db566 into 97064f4
2 parents 97064f4 + e2db566 commit 6a415ea

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 1ca2171..2928008 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -1,7 +1,7 @@
6+
########################################################################
7+
# Build Soapy SDR support module for SDRplay (API version 3)
8+
########################################################################
9+
-cmake_minimum_required(VERSION 2.8.12)
10+
+cmake_minimum_required(VERSION 3.10)
11+
project(SoapySDRPlay CXX)
12+
13+
find_package(SoapySDR "0.4.0" NO_MODULE REQUIRED)

pkgs/by-name/so/soapysdrplay/package.nix

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@
88
sdrplay,
99
}:
1010

11-
stdenv.mkDerivation rec {
11+
stdenv.mkDerivation (finalAttrs: {
1212
pname = "soapysdr-sdrplay3";
13-
version = "0.4.0";
13+
version = "0.5.2";
1414

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

22+
patches = [ ./cmake.patch ];
23+
2224
nativeBuildInputs = [
2325
cmake
2426
pkg-config
@@ -38,6 +40,11 @@ stdenv.mkDerivation rec {
3840
homepage = "https://github.com/pothosware/SoapySDRPlay3";
3941
license = lib.licenses.mit;
4042
maintainers = [ lib.maintainers.pmenke ];
41-
platforms = lib.platforms.linux;
43+
platforms = [
44+
"x86_64-linux"
45+
"aarch64-linux"
46+
"x86_64-darwin"
47+
"aarch64-darwin"
48+
];
4249
};
43-
}
50+
})

0 commit comments

Comments
 (0)