From 620ead69a4237fc9ab27cc1d5e78b702345e6f4a Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Sun, 27 Mar 2022 14:15:17 +0100 Subject: [PATCH] srsran: init at 21.10 (#164167) Co-authored-by: Sandro --- pkgs/applications/radio/srsran/default.nix | 49 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/applications/radio/srsran/default.nix diff --git a/pkgs/applications/radio/srsran/default.nix b/pkgs/applications/radio/srsran/default.nix new file mode 100644 index 000000000000..dc7ae777df71 --- /dev/null +++ b/pkgs/applications/radio/srsran/default.nix @@ -0,0 +1,49 @@ +{ stdenv +, lib +, cmake +, fetchFromGitHub +, pkg-config +, fftwFloat +, mbedtls +, boost +, lksctp-tools +, libconfig +, pcsclite +, uhd +, soapysdr +, libbladeRF +}: + +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 + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 418a333e28d2..40924f613d8b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10172,6 +10172,8 @@ with pkgs; srtrelay = callPackage ../applications/video/srtrelay { }; + srsran = callPackage ../applications/radio/srsran { }; + sourcehut = callPackage ../applications/version-management/sourcehut { }; sshfs-fuse = callPackage ../tools/filesystems/sshfs-fuse { };