From 3303f8a08cce2cb90f4a68ff29fe27bc37c494b6 Mon Sep 17 00:00:00 2001 From: Nico Felbinger Date: Sun, 31 May 2026 19:54:37 +0200 Subject: [PATCH] srsran: various fixes - set structuredAttrs - adjust repo, since it got renamed - adjust variable name for parameter to enable lte rates - remove 5g from description, since these parts have been moved to OCUDU (another project) - add myself to maintainers, since I'd like to support maintaining this package --- pkgs/by-name/sr/srsran/package.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/sr/srsran/package.nix b/pkgs/by-name/sr/srsran/package.nix index a49abe56173f..1a9388f38d43 100644 --- a/pkgs/by-name/sr/srsran/package.nix +++ b/pkgs/by-name/sr/srsran/package.nix @@ -24,11 +24,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "srsran"; version = "25_10"; + __structuredAttrs = true; src = fetchFromGitHub { owner = "srsran"; - repo = "srsran"; - rev = "release_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}"; + repo = "srsRAN_4G"; + tag = "release_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}"; sha256 = "sha256-DwQ4u17m8D5RqX3OIYSyeE5+51sLah1qchRcwlX5i0A="; }; @@ -68,7 +69,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DENABLE_WERROR=OFF" - (lib.cmakeBool "ENABLE_LTE_RATES" enableLteRates) + (lib.cmakeBool "USE_LTE_RATES" enableLteRates) (lib.cmakeBool "ENABLE_AVX" enableAvx) (lib.cmakeBool "ENABLE_AVX2" enableAvx2) (lib.cmakeBool "ENABLE_FMA" enableFma) @@ -81,9 +82,13 @@ stdenv.mkDerivation (finalAttrs: { meta = { homepage = "https://www.srslte.com/"; - description = "Open-source 4G and 5G software radio suite"; + changelog = "https://github.com/srsran/srsRAN_4G/releases/tag/${finalAttrs.src.tag}"; + description = "Open-source 4G software radio suite, including complete LTE UE, eNodeB and EPC applications"; license = lib.licenses.agpl3Plus; - platforms = with lib.platforms; linux; - maintainers = with lib.maintainers; [ hexagonal-sun ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ + hexagonal-sun + felbinger + ]; }; })