2024-08-11 01:25:04 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, ninja
, pkg-config
2024-08-11 17:13:10 +00:00
, fftwFloat
2024-08-11 01:25:04 +00:00
, lksctp-tools
, yaml-cpp
, mbedtls
, gtest
, elfutils
, libbfd
, libdwarf
2024-08-19 01:29:20 +00:00
, boost
, uhd
2024-08-11 01:25:04 +00:00
} :
stdenv . mkDerivation {
pname = " s r s r a n 5 g " ;
version = " 2 4 . 0 4 " ;
src = fetchFromGitHub {
owner = " s r s r a n " ;
repo = " s r s R A N _ P r o j e c t " ;
rev = " r e l e a s e _ 2 4 _ 0 4 " ;
hash = " s h a 2 5 6 - Z g O e W p m c q Q E 7 B Y g i a V y s n R k c J x D 4 f T C f K S Q C 5 h I G T f k = " ;
} ;
env . CFLAGS = " - D _ S C T P _ H " ;
env . CXXFLAGS = lib . concatStringsSep " " [
" - D _ S C T P _ H " # lksctp and glibc do not agree
# /build/source/tests/unittests/phy/lower/processors/downlink/lower_phy_downlink_processor_test.cpp:796:75: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
# 796 | ASSERT_TRUE(md.tx_start.has_value() && (md.tx_start.value() == std::abs(t_offset)));
# | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
" - W n o - e r r o r = s i g n - c o m p a r e "
] ;
nativeBuildInputs = [
cmake
ninja
pkg-config
] ;
buildInputs = [
2024-08-11 17:13:10 +00:00
fftwFloat
2024-08-11 01:25:04 +00:00
lksctp-tools
yaml-cpp
mbedtls
gtest
elfutils # libdw
libbfd
libdwarf
2024-08-11 17:13:10 +00:00
2024-08-19 01:29:20 +00:00
boost # required by uhd; should really be a propagatedBuildInput...
uhd
2024-08-11 01:25:04 +00:00
] ;
}