summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/radio/srsran
diff options
context:
space:
mode:
authorMatthew Leach <matthew@mattleach.net>2022-03-27 14:15:17 +0100
committerGitHub <noreply@github.com>2022-03-27 15:15:17 +0200
commit620ead69a4237fc9ab27cc1d5e78b702345e6f4a (patch)
treeeebbadc5ea7e89e1d9da68058346bb77070362d3 /pkgs/applications/radio/srsran
parent63dd57021f05b40aa32f9a9f399c3e8626894e25 (diff)
srsran: init at 21.10 (#164167)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/radio/srsran')
-rw-r--r--pkgs/applications/radio/srsran/default.nix49
1 files changed, 49 insertions, 0 deletions
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 ];
+ };
+}