depot/nix/pkgs/srsran5g/default.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

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 = "srsran5g";
version = "24.04";
src = fetchFromGitHub {
owner = "srsran";
repo = "srsRAN_Project";
rev = "release_24_04";
hash = "sha256-ZgOeWpmcqQE7BYgiaVysnRkcJxD4fTCfKSQC5hIGTfk=";
};
env.CFLAGS = "-D_SCTP_H";
env.CXXFLAGS = lib.concatStringsSep " " [
2024-09-29 18:26:00 +00:00
#"-D_SCTP_H" # lksctp and glibc do not agree
2024-08-11 01:25:04 +00:00
# /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)));
# | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
"-Wno-error=sign-compare"
];
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
];
}