hackrf, soapyhackrf: fix build for cmake 4 (#450306)

This commit is contained in:
Leona Maroni
2025-10-10 07:50:17 +00:00
committed by GitHub
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
libusb1,
@@ -29,6 +30,14 @@ stdenv.mkDerivation rec {
fftwSinglePrec
];
patches = [
# CMake < 3.5 fix. Remove upon next version bump.
(fetchpatch {
url = "https://github.com/greatscottgadgets/hackrf/commit/5c394520403c40b656a7400681e4ae167943e43f.patch";
hash = "sha256-FRzb+Bt5fQm94d1EDbMv8oUFwD93VZQHFpQpMDe/BAA=";
})
];
cmakeFlags = [
"-DUDEV_RULES_GROUP=plugdev"
"-DUDEV_RULES_PATH=lib/udev/rules.d"
+8
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
hackrf,
@@ -32,6 +33,13 @@ stdenv.mkDerivation {
soapysdr
];
patches = [
(fetchpatch {
url = "https://github.com/pothosware/SoapyHackRF/commit/143ff5e7e0f786e341df8846c04e8273c5183c26.patch";
hash = "sha256-8tMN6uEWUt1sUC45kBM6WHXDd/oTFyo6u+NpVPg+z5Q=";
})
];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with lib; {