2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, fftwFloat
|
|
|
|
, mbedtls
|
|
|
|
, boost
|
|
|
|
, lksctp-tools
|
|
|
|
, libconfig
|
|
|
|
, pcsclite
|
|
|
|
, uhd
|
2022-09-09 14:08:57 +00:00
|
|
|
, soapysdr-with-plugins
|
2022-03-30 09:31:56 +00:00
|
|
|
, libbladeRF
|
2022-08-12 12:06:08 +00:00
|
|
|
, zeromq
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "srsran";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "23.11";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "srsran";
|
|
|
|
repo = "srsran";
|
|
|
|
rev = "release_${builtins.replaceStrings ["."] ["_"] version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-3cQMZ75I4cyHpik2d/eBuzw7M4OgbKqroCddycw4uW8=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fftwFloat
|
|
|
|
mbedtls
|
|
|
|
boost
|
|
|
|
libconfig
|
|
|
|
lksctp-tools
|
|
|
|
pcsclite
|
|
|
|
uhd
|
2022-09-09 14:08:57 +00:00
|
|
|
soapysdr-with-plugins
|
2022-03-30 09:31:56 +00:00
|
|
|
libbladeRF
|
2022-08-12 12:06:08 +00:00
|
|
|
zeromq
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_WERROR=OFF" ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.srslte.com/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open-source 4G and 5G software radio suite";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2022-03-30 09:31:56 +00:00
|
|
|
platforms = with platforms; linux ;
|
|
|
|
maintainers = with maintainers; [ hexagonal-sun ];
|
|
|
|
};
|
|
|
|
}
|