2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, fftwFloat
|
|
|
|
, mbedtls
|
|
|
|
, boost
|
|
|
|
, lksctp-tools
|
|
|
|
, libconfig
|
|
|
|
, pcsclite
|
|
|
|
, uhd
|
|
|
|
, soapysdr
|
|
|
|
, libbladeRF
|
2022-08-12 12:06:08 +00:00
|
|
|
, zeromq
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "srsran";
|
|
|
|
version = "21.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "srsran";
|
|
|
|
repo = "srsran";
|
|
|
|
rev = "release_${builtins.replaceStrings ["."] ["_"] version}";
|
|
|
|
sha256 = "sha256-uJv8khevp7g2p4zT6bkrut67kvMu+fuL1VHDDit0viw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fftwFloat
|
|
|
|
mbedtls
|
|
|
|
boost
|
|
|
|
libconfig
|
|
|
|
lksctp-tools
|
|
|
|
pcsclite
|
|
|
|
uhd
|
|
|
|
soapysdr
|
|
|
|
libbladeRF
|
2022-08-12 12:06:08 +00:00
|
|
|
zeromq
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.srslte.com/";
|
|
|
|
description = "Open-source 4G and 5G software radio suite.";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = with platforms; linux ;
|
|
|
|
maintainers = with maintainers; [ hexagonal-sun ];
|
|
|
|
};
|
|
|
|
}
|